Fatal Error :: Call to a member function title() on a non-object

/var/www/vhosts/cascades-shopping.co.uk/private/app/_code/module_shops/class.frag_shop_detail.php [ 54 ]

39--{40---$this->DOM->add_css( URL_ROOT.'css/stores.css' );41----$this->DOM->add_css( URL_ROOT.'css/slimbox.css' );42----$this->DOM->add_js( URL_ROOT.'scripts/mootools-core-1.3.2-full-compat-yc.js' );43----$this->DOM->add_js( URL_ROOT.'scripts/slimbox.js' );44--}4546--$this->shop = lib_coredata_context::default_context()47----->managed_object_for_permalink( lib_coredata_entity::factory( 'shops' )48----->set_custom_class( 'mod_shops_managed_object' ) );4950--// set the title51--if( $this->dom_exists() )52--{53---$this->DOM->set( 'title', html_entity_decode( $this->shop->title() ).' : '.$this->shop->categories().' : '.$config['site']['name'] );54            $this->DOM->change_meta( array(55                'name' => 'description',56                'content' => summary( $this->shop->text(), 155 )57            ) );58--}59-}6061-/**62- *63- */64-public function print_content()65-{66--// shop detail view67--$args = array_merge( $this->shop->values(), array( 'object' => $this->shop ) );68--echo $this->load_view( 'shop_detail', $args );