Notice!

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

APPPATH/classes/util.php @ line 182

177                }
178            }
179        }
180            
181        if(! is_numeric($thumbnail_id)){
182            $imgs get_posts(array( 'post_type' => 'attachment''numberposts' => 1'orderby' => 'menu_order''order' => 'ASC''post_parent' => $post->ID 'post_mime_type' => 'image'));
183            if(is_array($imgs) && count($imgs) > 0){
184                $thumbnail_id $imgs[0]->ID;
185            }
186        }
187

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/util.php @ line 182
    177                }
    178            }
    179        }
    180            
    181        if(! is_numeric($thumbnail_id)){
    182            $imgs get_posts(array( 'post_type' => 'attachment''numberposts' => 1'orderby' => 'menu_order''order' => 'ASC''post_parent' => $post->ID 'post_mime_type' => 'image'));
    183            if(is_array($imgs) && count($imgs) > 0){
    184                $thumbnail_id $imgs[0]->ID;
    185            }
    186        }
    187
    
  3. APPPATH/classes/controller/post.php @ line 86
    81
    82        $this->template->title Util::get_title($this,array('id' => $id));
    83
    84        $type Util::get_posttype($id);
    85        $this->template->class = array('single',$type);
    86        $this->template->og_image Util::get_ogImage($id);
    87    }
    88
    89    public function action_page($slug null)
    90    {
    91        try{
    
  4. COREPATH/classes/request.php @ line 483
    478                    // fire any controller started events
    479                    \Event::instance()->has_events('controller_started') and \Event::instance()->trigger('controller_started''''none');
    480
    481                    $class->hasMethod('before') and $class->getMethod('before')->invoke($this->controller_instance);
    482
    483                    $response $action->invokeArgs($this->controller_instance$this->method_params);
    484
    485                    $class->hasMethod('after') and $response $class->getMethod('after')->invoke($this->controller_instance$response);
    486
    487                    // fire any controller finished events
    488                    \Event::instance()->has_events('controller_finished') and \Event::instance()->trigger('controller_finished''''none');
    
  5. DOCROOT/index.php @ line 49
    44require APPPATH.'bootstrap.php';
    45
    46// Generate the request, execute it and send the output.
    47try
    48{
    49    $response Request::forge()->execute()->response();
    50}
    51catch (HttpNotFoundException $e)
    52{
    53    \Request::reset_request(true);
    54