1. Symfony\Component\Debug\Exception\FatalErrorException
…/­app/­modules/­CMS/­controllers/­CMSNoticiasController.php20
0. Illuminate\Exception\Handler handleShutdown
<#unknown>0

Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN)

Callstack information; navigate with mouse or keyboard using Ctrl+↑ or Ctrl+↓
Copy-to-clipboard button
Exception message and its type
Code snippet where the error was thrown
Server state information
Application provided context information
Symfony\Component\Debug\Exception\FatalErrorException thrown with message "Call to undefined method stdClass::save()" Stacktrace: #1 Symfony\Component\Debug\Exception\FatalErrorException in /home/storage/d/bd/6b/canarinho2/app/modules/CMS/controllers/CMSNoticiasController.php:20 #0 Illuminate\Exception\Handler:handleShutdown in <#unknown>:0

Call to undefined method stdClass::save()

    public function view($slug){        
        
        $noticia = Noticias::select("*",DB::raw("DATE_FORMAT(created_at,'Postado em:  %d/%m/%Y às %H:%i:%s') as data"))->where('slug',$slug)->first();       
        
        //soma quantidade de visualizações......
        $qt = Noticias::find($noticia->idnoticia);
        $qt->not_visualizacao ++;
        $qt->save();
        
        return View::make('CMS::pages.noticias.view',array(
<#unknown>
empty
empty
empty
empty
empty
Key Value
DOCUMENT_ROOT /home/storage/d/bd/6b/canarinho2/public_html/
GATEWAY_INTERFACE CGI/1.1
HTTPS on
HTTP_ACCEPT */*
HTTP_HOST www.canarinho.com.br
HTTP_REFERER http://www.canarinho.com.br/noticias/alteracao-de-roteiro-linha-320-corticeira-via-br-280-jaragua-dias-uteis
HTTP_USER_AGENT claudebot
LOG_SUBDIR canarinho2
PATH /bin:/usr/bin
PHPRC /home/canarinho2/
QUERY_STRING
REDIRECT_HTTPS on
REDIRECT_LOG_SUBDIR canarinho2
REDIRECT_SCRIPT_URI https://www.canarinho.com.br/noticias/alteracao-de-roteiro-linha-320-corticeira-via-br-280-jaragua-dias-uteis
REDIRECT_SCRIPT_URL /noticias/alteracao-de-roteiro-linha-320-corticeira-via-br-280-jaragua-dias-uteis
REDIRECT_SSL_TLS_SNI www.canarinho.com.br
REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID ZfkVV7-8MyIAADUc5PIAAAAO
REDIRECT_URL /noticias/alteracao-de-roteiro-linha-320-corticeira-via-br-280-jaragua-dias-uteis
REMOTE_ADDR 34.229.223.223
REMOTE_PORT 59754
REQUEST_METHOD GET
REQUEST_URI /noticias/alteracao-de-roteiro-linha-320-corticeira-via-br-280-jaragua-dias-uteis
SCRIPT_FILENAME /home/storage/d/bd/6b/canarinho2/public_html/index.php
SCRIPT_NAME /index.php
SCRIPT_URI https://www.canarinho.com.br/noticias/alteracao-de-roteiro-linha-320-corticeira-via-br-280-jaragua-dias-uteis
SCRIPT_URL /noticias/alteracao-de-roteiro-linha-320-corticeira-via-br-280-jaragua-dias-uteis
SERVER_ADDR 191.252.51.34
SERVER_ADMIN webmaster@canarinho.com.br
SERVER_NAME www.canarinho.com.br
SERVER_PORT 443
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SSL_TLS_SNI www.canarinho.com.br
SUPHP_URI /index.php
UNIQUE_ID ZfkVV7-8MyIAADUc5PIAAAAO
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1710822743.2863
REQUEST_TIME 1710822743
argv Array ( )
argc 0
Key Value
DOCUMENT_ROOT /home/storage/d/bd/6b/canarinho2/public_html/
GATEWAY_INTERFACE CGI/1.1
HTTPS on
HTTP_ACCEPT */*
HTTP_HOST www.canarinho.com.br
HTTP_REFERER http://www.canarinho.com.br/noticias/alteracao-de-roteiro-linha-320-corticeira-via-br-280-jaragua-dias-uteis
HTTP_USER_AGENT claudebot
LOG_SUBDIR canarinho2
PATH /bin:/usr/bin
PHPRC /home/canarinho2/
QUERY_STRING
REDIRECT_HTTPS on
REDIRECT_LOG_SUBDIR canarinho2
REDIRECT_SCRIPT_URI https://www.canarinho.com.br/noticias/alteracao-de-roteiro-linha-320-corticeira-via-br-280-jaragua-dias-uteis
REDIRECT_SCRIPT_URL /noticias/alteracao-de-roteiro-linha-320-corticeira-via-br-280-jaragua-dias-uteis
REDIRECT_SSL_TLS_SNI www.canarinho.com.br
REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID ZfkVV7-8MyIAADUc5PIAAAAO
REDIRECT_URL /noticias/alteracao-de-roteiro-linha-320-corticeira-via-br-280-jaragua-dias-uteis
REMOTE_ADDR 34.229.223.223
REMOTE_PORT 59754
REQUEST_METHOD GET
REQUEST_URI /noticias/alteracao-de-roteiro-linha-320-corticeira-via-br-280-jaragua-dias-uteis
SCRIPT_FILENAME /home/storage/d/bd/6b/canarinho2/public_html/index.php
SCRIPT_NAME /index.php
SCRIPT_URI https://www.canarinho.com.br/noticias/alteracao-de-roteiro-linha-320-corticeira-via-br-280-jaragua-dias-uteis
SCRIPT_URL /noticias/alteracao-de-roteiro-linha-320-corticeira-via-br-280-jaragua-dias-uteis
SERVER_ADDR 191.252.51.34
SERVER_ADMIN webmaster@canarinho.com.br
SERVER_NAME www.canarinho.com.br
SERVER_PORT 443
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SSL_TLS_SNI www.canarinho.com.br
SUPHP_URI /index.php
UNIQUE_ID ZfkVV7-8MyIAADUc5PIAAAAO
0. Whoops\Handler\PrettyPageHandler