Error!

ErrorException [ Error ]: Call to undefined method Orm\Query::generate_url()

APPPATH/classes/model/frontend/content.php @ line 1509

1504                $myData['url_title'] = $object->url_title;
1505
1506                if(Uri::segment(2) == 'news')
1507                {
1508              
1509                    $myData['nav_url_title'] = model_cms_site::find($content->cms_sites_id)->generate_url(Controller_Layout::$current_language);
1510
1511                }
1512
1513        $pictures Format::factory$object->picture,'json')->to_array();
1514        

Backtrace

  1. COREPATH/bootstrap.php @ line 33
    28 Register all the error/shutdown handlers
    29 */
    30register_shutdown_function(function ()
    31{
    32    load_error_classes();
    33    return \Error::shutdown_handler();
    34});
    35
    36set_exception_handler(function (\Exception $e)
    37{
    38    load_error_classes();
    

Prior Non-Fatal Errors

  1. Notice: Trying to get property of non-object in APPPATH/classes/model/frontend/generator.php @ line 232
    227            }
    228
    229            if(Uri::get_correct_uri_segment(2) == 'news')
    230            {
    231                $news model_cms_news::find(Uri::get_correct_uri_segment(4));
    232                $title $news->title;
    233            }
    234
    235            if(!empty($uri[1]))
    236            {
    237                $title .= ' | ';
    
  2. Notice: Trying to get property of non-object in APPPATH/classes/model/frontend/content.php @ line 1492
    1487        $myData = array();
    1488        
    1489        if($fullview)
    1490        {
    1491            // print  '<div class="news_full">';
    1492            $myData['text'] = $object->text;
    1493            
    1494        }
    1495        else 
    1496        {
    1497            $text explode("\n"wordwrap($object->text$settings->news_max_token"\n"));
    
  3. Notice: Trying to get property of non-object in APPPATH/classes/model/frontend/content.php @ line 1503
    1498            
    1499            $myData['text'] = $text[0] . '...<a class="link" href="' Uri::create(Controller_Layout::$current_language '/news/' $content->id '/' $object->id '/' $object->url_title) . '">mehr</a>';
    1500        }
    1501
    1502                $myData['fullview'] = $fullview;
    1503                $myData['title'] = $object->title;
    1504                $myData['url_title'] = $object->url_title;
    1505
    1506                if(Uri::segment(2) == 'news')
    1507                {
    1508              
    
  4. Notice: Trying to get property of non-object in APPPATH/classes/model/frontend/content.php @ line 1504
    1499            $myData['text'] = $text[0] . '...<a class="link" href="' Uri::create(Controller_Layout::$current_language '/news/' $content->id '/' $object->id '/' $object->url_title) . '">mehr</a>';
    1500        }
    1501
    1502                $myData['fullview'] = $fullview;
    1503                $myData['title'] = $object->title;
    1504                $myData['url_title'] = $object->url_title;
    1505
    1506                if(Uri::segment(2) == 'news')
    1507                {
    1508              
    1509                    $myData['nav_url_title'] = model_cms_site::find($content->cms_sites_id)->generate_url(Controller_Layout::$current_language);
    
  5. Notice: Trying to get property of non-object in APPPATH/classes/model/frontend/content.php @ line 1509
    1504                $myData['url_title'] = $object->url_title;
    1505
    1506                if(Uri::segment(2) == 'news')
    1507                {
    1508              
    1509                    $myData['nav_url_title'] = model_cms_site::find($content->cms_sites_id)->generate_url(Controller_Layout::$current_language);
    1510
    1511                }
    1512
    1513        $pictures Format::factory$object->picture,'json')->to_array();
    1514        
    

Prior Contents (show)