Notice!

Fuel\Core\PhpErrorException [ Notice ]:
Trying to get property 'cat' of non-object

APPPATH/classes/helpers/url.php @ line 34

29        return \Uri::base() . $idioma '/products/category/' $slugCategoria;
30    }
31    
32    public static function linkBlog($item$idioma 'es')
33    {
34        return \Uri::base() . $idioma '/blog/ver/' $item->blog->cat->slug '/' .$item->slug;
35    }
36    
37    public static function linkBlogCategoria($slug$idioma='es')
38    {
39        return \Uri::base() .$idioma.'/blog/categoria/'.$slug;

Backtrace

  1. COREPATH/bootstrap.php @ line 112
    107        include COREPATH.'classes/errorhandler.php';
    108        class_alias('\Fuel\Core\Errorhandler''Errorhandler');
    109        class_alias('\Fuel\Core\PhpErrorException''PhpErrorException');
    110    }
    111
    112    return \Errorhandler::error_handler($severity$message$filepath$line);
    113});
    114
    115function setup_autoloader()
    116{
    117    \Autoloader::add_namespace('Fuel\\Core'COREPATH.'classes/');
    
  2. APPPATH/classes/helpers/url.php @ line 34
    29        return \Uri::base() . $idioma '/products/category/' $slugCategoria;
    30    }
    31    
    32    public static function linkBlog($item$idioma 'es')
    33    {
    34        return \Uri::base() . $idioma '/blog/ver/' $item->blog->cat->slug '/' .$item->slug;
    35    }
    36    
    37    public static function linkBlogCategoria($slug$idioma='es')
    38    {
    39        return \Uri::base() .$idioma.'/blog/categoria/'.$slug;
    
  3. APPPATH/views/blog/index.php @ line 27
    22                            <?php foreach($items as $item) :?>
    23                            <?php $itm $item->traduccion($prefijo); ?>
    24                            <li class="grid-item wow animate__fadeIn">
    25                                <div class="blog-post">
    26                                    <div class="blog-post-image margin-40px-bottom md-margin-35px-bottom xs-margin-25px-bottom">
    27                                        <a href="<?=  \Helpers_Url::linkBlog($itm$itm->idioma) ?>">
    28                                        <?= \Imts\Utils\Ficheros::generarTamanyo('uploads/blog/'$itm->blog->imagen600,array('alt'=>$itm->titulo),75,false,'uploads/content/recursos/no-imagen.jpg'?>
    29                                        </a>
    30                                    </div>
    31                                    <div class="post-details margin-30px-bottom md-margin-10px-bottom xs-no-margin-bottom">
    32                                        <span class="alt-font text-uppercase text-extra-small letter-spacing-1px d-block"><?=$itm->blog->getFecha()->format('d/m/Y')?></span>
    
  4. COREPATH/classes/view.php @ line 258
    253            ob_start();
    254
    255            try
    256            {
    257                // Load the view within the current scope
    258                include $__file_name;
    259            }
    260            catch (\Exception $e)
    261            {
    262                // Delete the output buffer
    263                ob_end_clean();
    
  5. COREPATH/classes/view.php @ line 274
    269            // Get the captured output and close the buffer
    270            return ob_get_clean();
    271        };
    272
    273        // import and process the view file
    274        $result $clean_room($file_override ?: $this->file_name$data $this->get_data());
    275
    276        // disable sanitization on objects that support it
    277        $this->unsanitize($data);
    278
    279        // return the result
    
  6. COREPATH/classes/view.php @ line 680
    675        {
    676            throw new \FuelException('You must set the file to use within your view before rendering');
    677        }
    678
    679        // combine local and global data and capture the output
    680        $return $this->process_file();
    681
    682        // restore the current language setting
    683        $this->active_language and \Config::set('language'$current_language);
    684
    685        // and the active request class
    
  7. COREPATH/classes/view.php @ line 227
    222     */
    223    public function __toString()
    224    {
    225        try
    226        {
    227            return $this->render();
    228        }
    229        catch (\Exception $e)
    230        {
    231            \Errorhandler::exception_handler($e);
    232
    
  8. APPPATH/views/template.php @ line 78
    73                            </div>
    74                        </div>
    75                    </div>
    76                </div>
    77            </header>    
    78<?=$content?>
    79        <footer class="footer-dark border-top border-color-white-transparent line-height-26px padding-30px-tb xs-padding-20px-tb">
    80            <div class="footer-top padding-50px-tb">
    81                <div class="container">
    82                    <div class="row row-cols-1 row-cols-md-3 row-cols-sm-3 justify-content-center">
    83                        <div class="col-12 col-lg-4 col-sm-6 xs-margin-25px-bottom">
    
  9. COREPATH/classes/view.php @ line 258
    253            ob_start();
    254
    255            try
    256            {
    257                // Load the view within the current scope
    258                include $__file_name;
    259            }
    260            catch (\Exception $e)
    261            {
    262                // Delete the output buffer
    263                ob_end_clean();
    
  10. COREPATH/classes/view.php @ line 274
    269            // Get the captured output and close the buffer
    270            return ob_get_clean();
    271        };
    272
    273        // import and process the view file
    274        $result $clean_room($file_override ?: $this->file_name$data $this->get_data());
    275
    276        // disable sanitization on objects that support it
    277        $this->unsanitize($data);
    278
    279        // return the result
    
  11. COREPATH/classes/view.php @ line 680
    675        {
    676            throw new \FuelException('You must set the file to use within your view before rendering');
    677        }
    678
    679        // combine local and global data and capture the output
    680        $return $this->process_file();
    681
    682        // restore the current language setting
    683        $this->active_language and \Config::set('language'$current_language);
    684
    685        // and the active request class
    
  12. COREPATH/classes/view.php @ line 227
    222     */
    223    public function __toString()
    224    {
    225        try
    226        {
    227            return $this->render();
    228        }
    229        catch (\Exception $e)
    230        {
    231            \Errorhandler::exception_handler($e);
    232
    
  13. COREPATH/classes/response.php @ line 382
    377     *
    378     * @return  string
    379     */
    380    public function __toString()
    381    {
    382        return (string) $this->body;
    383    }
    384}
    
  14. DOCROOT/index.php @ line 191
    186catch (HttpServerErrorException $e)
    187{
    188    $response $routerequest('_500_'$e);
    189}
    190
    191$response->body((string) $response);
    192
    193/**
    194 * -----------------------------------------------------------------------------
    195 *  Start profiling
    196 * -----------------------------------------------------------------------------
    

Prior Contents (show)