Whoops! There was an error.
mysqli_sql_exception (1054)
Unknown column 'url' in 'field list' mysqli_sql_exception thrown with message "Unknown column 'url' in 'field list'" Stacktrace: #8 mysqli_sql_exception in /home/levsistemas/public_html/dev/baseprojects/_core/model/dao/statement.class.php:420 #7 mysqli:query in /home/levsistemas/public_html/dev/baseprojects/_core/model/dao/statement.class.php:420 #6 Statement:executeReader in /home/levsistemas/public_html/dev/baseprojects/_core/model/basics/flex.class.php:369 #5 Flex:dbLoad in /home/levsistemas/public_html/dev/baseprojects/_core/model/basics/flex.class.php:379 #4 Flex:objLoad in /home/levsistemas/public_html/dev/baseprojects/_core/model/basics/flex.class.php:427 #3 Flex:load in /home/levsistemas/public_html/dev/baseprojects/_core/view/site/module.blog.php:95 #2 include in /home/levsistemas/public_html/dev/baseprojects/_core/view/site/index.php:42 #1 require in /home/levsistemas/public_html/dev/baseprojects/_core/bootstrap.php:49 #0 require in /home/levsistemas/public_html/dev/baseprojects/index.php:4
Stack frames (9)
8
mysqli_sql_exception
/model/dao/statement.class.php420
7
mysqli query
/model/dao/statement.class.php420
6
Statement executeReader
/model/basics/flex.class.php369
5
Flex dbLoad
/model/basics/flex.class.php379
4
Flex objLoad
/model/basics/flex.class.php427
3
Flex load
/view/site/module.blog.php95
2
include
/view/site/index.php42
1
require
/bootstrap.php49
0
require
/home/levsistemas/public_html/dev/baseprojects/index.php4
/home/levsistemas/public_html/dev/baseprojects/_core/model/dao/statement.class.php
                    $this->connection->rolloverTransaction();
                    throw new SQLException(1, 7, $parsed);
                }
 
                $rset = new ResultSet($result);
                
        }elseif(strtolower($GLOBALS['DBCONN']['data']['drive']) == 'postgre'){
            
                if (!($result = pg_query($this->connection->conn_id, $parsed)))
                {
                    $this->connection->rolloverTransaction();
                    throw new SQLException(1, 7, $parsed);
                }
 
                $rset = new ResultSet($result);
 
                
        }else{
            try {
                if (!($result = $this->connection->conn_id->query($parsed))){
                    $this->connection->rolloverTransaction();
                    throw new SQLException(mysqli_error($this->connection->conn_id), 7, $parsed);
                }
 
            } catch (PDOException $e) {
                throw new SQLException($e->getMessage(), 7, $parsed);
            }
            
                
 
            $rset = new ResultSet($result);
        }
 
        
         
        return $rset; 
    } 
    
    function executeScalar() 
    { 
/home/levsistemas/public_html/dev/baseprojects/_core/model/dao/statement.class.php
                    $this->connection->rolloverTransaction();
                    throw new SQLException(1, 7, $parsed);
                }
 
                $rset = new ResultSet($result);
                
        }elseif(strtolower($GLOBALS['DBCONN']['data']['drive']) == 'postgre'){
            
                if (!($result = pg_query($this->connection->conn_id, $parsed)))
                {
                    $this->connection->rolloverTransaction();
                    throw new SQLException(1, 7, $parsed);
                }
 
                $rset = new ResultSet($result);
 
                
        }else{
            try {
                if (!($result = $this->connection->conn_id->query($parsed))){
                    $this->connection->rolloverTransaction();
                    throw new SQLException(mysqli_error($this->connection->conn_id), 7, $parsed);
                }
 
            } catch (PDOException $e) {
                throw new SQLException($e->getMessage(), 7, $parsed);
            }
            
                
 
            $rset = new ResultSet($result);
        }
 
        
         
        return $rset; 
    } 
    
    function executeScalar() 
    { 
/home/levsistemas/public_html/dev/baseprojects/_core/model/basics/flex.class.php
    }
 
    protected function dbLoad($arr = array()) {
        $conn = new Connection();
        $where = "";
        foreach ($arr as $var => $value) {
            $where .= ($where == '' ? '' : ' AND ') . "" . $var . " = '{$value}'";
        }
 
        $fields = "";
        foreach ($this->mapper as $var => $type) {
            if (strtolower($type) == 'date' && strtolower($GLOBALS['DBCONN']['data']['drive']) == 'oracle') {
                $fields .= ",TO_CHAR({$var},'DD/MM/YYYY HH24:MI:SS') as {$var}";
            } else
                $fields .= ",{$var}";
        }
        $fields = substr($fields, 1);
        $statement = $conn->prepareStatement("SELECT {$fields} FROM {$this->getTableName(true)} WHERE {$where}");
 
        return $statement->executeReader();
    
    }
 
    public function objLoad() {
        $arr = array();
        
        foreach ($this->primaryKey as $pk) {
            $arr = array_merge($arr, array($pk => $this->params[$pk]));
        }
        $rs = $this->dbLoad($arr);
 
        if ($rs->numRows() > 0) {
            while ($rs->next()) {
                foreach ($this->mapper as $var => $type) {
                    switch ($type) {
                        case 'int' : $this->set($var, $rs->getInt($var));
                            break;
                        case 'number' : $this->set($var, $rs->getNumber($var));
                            break;
                        default : $this->set($var, $rs->getString($var));
/home/levsistemas/public_html/dev/baseprojects/_core/model/basics/flex.class.php
        foreach ($this->mapper as $var => $type) {
            if (strtolower($type) == 'date' && strtolower($GLOBALS['DBCONN']['data']['drive']) == 'oracle') {
                $fields .= ",TO_CHAR({$var},'DD/MM/YYYY HH24:MI:SS') as {$var}";
            } else
                $fields .= ",{$var}";
        }
        $fields = substr($fields, 1);
        $statement = $conn->prepareStatement("SELECT {$fields} FROM {$this->getTableName(true)} WHERE {$where}");
 
        return $statement->executeReader();
    
    }
 
    public function objLoad() {
        $arr = array();
        
        foreach ($this->primaryKey as $pk) {
            $arr = array_merge($arr, array($pk => $this->params[$pk]));
        }
        $rs = $this->dbLoad($arr);
 
        if ($rs->numRows() > 0) {
            while ($rs->next()) {
                foreach ($this->mapper as $var => $type) {
                    switch ($type) {
                        case 'int' : $this->set($var, $rs->getInt($var));
                            break;
                        case 'number' : $this->set($var, $rs->getNumber($var));
                            break;
                        default : $this->set($var, $rs->getString($var));
                            break;
                    }
                }
 
                $this->persisted = true;
            }
        }
    }
 
    public function getExtraTab() {
/home/levsistemas/public_html/dev/baseprojects/_core/model/basics/flex.class.php
        $classe = get_called_class();
        $obj = $classe::load($id);
        $tam = 'tam'.ucfirst($nmImage);
        Image::deleteImage($classe::$$tam, $id, $obj->getTableName(), $obj->get($nmImage));
        $obj->set($nmImage, '');
        $obj->save();
        unset($obj);
    }
 
    public static function deleteFile($id, $nmFile='file'){
        $classe = get_called_class();
        $obj = $classe::load($id);
        File::deleteFile($id, $obj->getTableName(), $obj->get($nmFile));
        unset($obj);
    }
 
    public static function load($id) {
        $classe = get_called_class();
        $obj = new $classe(array($id));
        $obj->objLoad();
        return $obj;
    }
 
    public static function loadBy($by, $val){
        $classe = get_called_class();
        $obj = new $classe();
 
        $rs = self::search([
            's' => implode(',', $obj->getPK()),
            'w' => "`{$by}` = '{$val}'",
            'l' => '0,1'
        ]);
 
        if(!$rs->next()){
            return $obj;
        }
 
        return self::load($rs->getInt($obj->getPK()[0]));
    }
 
/home/levsistemas/public_html/dev/baseprojects/_core/view/site/module.blog.php
        echo isset($view['gallery']) ? '
    <script>
        function showGallery(index){
            blueimp.Gallery(' . $view['gallery'] . ').slide(index,0);
        }
    </script>
    ' : '';
    } ?>
<?php } ?>
 
<?php
 
$rs = Publicacao::search([
    's' => 'id',
    'w' => 'ativo = 1 AND id <>' . $id,
]);
 
$view['publicacoes'] = array();
while ($rs->next()) {
    $view['publicacoes'][] = Publicacao::load($rs->getInt('id'));
}
 
if (count($view['publicacoes']) > 0) { ?>
    <section class="posts wrapper-sm bg-light">
 
        <div class="container">
 
            <h2 class="h1 text-primary fw-bold mb-4 mb-xxl-5" data-aos="fade">Blog</h2>
 
            <div id="publicacoes">
 
            </div>
 
 
        </div>
 
    </section>
 
<?php } ?>
 
/home/levsistemas/public_html/dev/baseprojects/_core/view/site/index.php
        <?=(isset($view['json-ld']) && count($view['json-ld']) > 0 ? '<script type="application/ld+json">
        '.json_encode($view['json-ld']).'
        </script>' :'')?>
 
        <?php if(isset($view['og'])) foreach($view['og'] as $k => $v) echo '<meta property="og:'.$k.'" content="'.Utils::replace('/\s+/', ' ', $v).'" />'.PHP_EOL; ?>
        
        <link href="<?=__PATH__?>css/framework.min.css?v=<?=filemtime($defaultPath.'css/framework.min.css')?>" rel="stylesheet">  
        <?php if(file_exists($defaultPath.'css/style.css')){ ?>
            <link href="<?=__PATH__?>css/style.css?v=<?=filemtime($defaultPath.'css/style.css')?>" rel="stylesheet">      
        <?php } ?>
 
        <?=str_replace('#NONCE#', $HashNonce, html_entity_decode($Config->get('head-scripts'), ENT_QUOTES, $GLOBALS['Charset']))?>  
 
    </head>
 
    <body class="<?= $view['page_class'] ?>">
        <?php
 
        include("header.php");
        include dirname(__FILE__) . "/module." . $view['module'];
        include("footer.php");
        
        if(isset($view['thumbs']) && count($view['thumbs']) > 0){ ?>
 
        <div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls" aria-label="image gallery" aria-modal="true" role="dialog" data-start-slideshow="false" data-filter=":even">
            <div class="slides" aria-live="off"></div>
            <h3 class="title">&nbsp;</h3>
            <a href="javascript:;" class="prev" aria-controls="blueimp-gallery" aria-label="Anterior" aria-keyshortcuts="ArrowLeft"></a>
            <a href="javascript:;" class="next" aria-controls="blueimp-gallery" aria-label="Próximo" aria-keyshortcuts="ArrowRight"></a>
            <a href="javascript:;" class="close" aria-controls="blueimp-gallery" aria-label="Fechar" aria-keyshortcuts="Escape"></a>
            <a href="javascript:;" class="play-pause" aria-controls="blueimp-gallery" aria-label="Play" aria-keyshortcuts="Space" aria-pressed="true" role="button" ></a>
            <ol class="indicator"></ol>
        </div>
 
        <?php } ?>
 
        <script nonce="<?=$HashNonce?>"> 
            const __PATH__ = '<?= __PATH__ ?>';
            const __BASEPATH__ = '<?= __BASEPATH__ ?>';
        </script>
/home/levsistemas/public_html/dev/baseprojects/_core/bootstrap.php
$pUrl = explode('/',$url);
if(array_key_exists($pUrl[0], $predefinedPath)){
    define("__PATH__", $serverPath.$predefinedPath[$pUrl[0]]['path']);
    $folderPath = $predefinedPath[$pUrl[0]]['folder'];
    $pagePath = $predefinedPath[$pUrl[0]]['path'];
}else{
    define("__PATH__", $serverPath);
    $folderPath = $predefinedPath['']['folder'];
    $pagePath = $predefinedPath['']['path'];
}
 
define("__BASEPATH__", $serverPath);
$param = $pagePath != '' ? Utils::replace("#^{$pagePath}?#i",'', $url) : $url;
 
$request = new Request($param);
$conn = new Connection();
$Config = new Config();
 
require $cPath.$folderPath.'core.php';
require $vPath.$folderPath.'index.php';
 
$conn->closeConnection();
/home/levsistemas/public_html/dev/baseprojects/index.php
<?php
global $defaultPath;
$defaultPath = __DIR__."/";
require $defaultPath.'_core/bootstrap.php';
 

Environment & details:

empty
empty
empty
empty
Key Value
SQLLOG SELECT id,titulo,data,subtitulo,descricao,autor,fonte,img,legenda,video,meta_desc,meta_keys,meta_title,url,ativo,usr_cad,dt_cad,usr_ualt,dt_ualt FROM publicacoes WHERE id = '1'
Key Value
USER levsistemas
HOME /home/levsistemas
SCRIPT_NAME /baseprojects/index.php
REQUEST_URI /baseprojects/blog
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /baseprojects/blog
REMOTE_PORT 13757
SCRIPT_FILENAME /home/levsistemas/public_html/dev/baseprojects/index.php
SERVER_ADMIN webmaster@dev.levsistemas.com.br
CONTEXT_DOCUMENT_ROOT /home/levsistemas/public_html/dev
CONTEXT_PREFIX
REQUEST_SCHEME https
DOCUMENT_ROOT /home/levsistemas/public_html/dev
REMOTE_ADDR 216.73.216.222
SERVER_PORT 443
SERVER_ADDR 104.234.235.73
SERVER_NAME dev.levsistemas.com.br
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
PATH /usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin
HTTP_HOST dev.levsistemas.com.br
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT */*
proxy-nokeepalive 1
SSL_TLS_SNI dev.levsistemas.com.br
HTTPS on
UNIQUE_ID aUDxRfq8TtU6_UJbXjy2_QAAABY
REDIRECT_STATUS 200
REDIRECT_SSL_TLS_SNI dev.levsistemas.com.br
REDIRECT_HTTPS on
REDIRECT_UNIQUE_ID aUDxRfq8TtU6_UJbXjy2_QAAABY
FCGI_ROLE RESPONDER
PHP_SELF /baseprojects/index.php
REQUEST_TIME_FLOAT 1765863749.7399
REQUEST_TIME 1765863749
argv Array ( )
argc 0
Key Value
APP_NAME Gerenciador Geral V4
APP_CHARSET utf-8
APP_DOMAIN levsistemas.com.br
APP_ENVIRONMENT development
LANG pt-br
CPANEL_USER levsistemas
FLEX_ID 0
DB_CONNECTION mysql
DB_PREFIX
DB_CHARSET utf8mb4
DB_HOST localhost
DB_PORT 3306
DB_DATABASE levsistemas_base
DB_USERNAME levsistemas_master
DB_PASSWORD Al3UyigOzHE1
MAIL_DRIVER smtp
MAIL_HOST localhost
MAIL_PORT 587
MAIL_AUTH 1
MAIL_ENCRYPTION
MAIL_USERNAME noreply@levsistemas.com.br
MAIL_PASSWORD rnEqE1DvX9A5
0. Whoops\Handler\PrettyPageHandler