Error

Call to a member function getImagePath() on null

/home/remaxgr/public_html/protected/controllers/front/PropertyController.php(465)

453         );
454 
455         return $details = array(
456             'title' => $model->getShortDescription($language),
457             'price' => $model->Price,
458             'address' => $address_text,
459             'code' => $model->Code,
460             'description' => $language === 'GR' ? $model->DescriptionGRDisplay : $model->DescriptionENDisplay,
461             'characteristics' => $characteristics,
462             'attributes' => $attributes,
463             'associate' => array(
464                 'name' => $model->getPropertyAssociateByLang($language),
465                 'image' => $model->user->getImagePath(true, 'large'),
466                 'link' => $link
467             ),
468             'office' => array(
469                 'name' => $model->getPropertyOffice(),
470                 'address' => $language === 'GR' ? $model->user->getOfficeRecord()->AddressGR : $model->user->getOfficeRecord()->AddressEN,
471                 'region' => Location::model()->getLocationTitle($model->user->getOfficeRecord()->LocationID, $language),
472                 'postal' => $model->user->getOfficeRecord()->PostalCode,
473                 'phone' => $model->user->getOfficeRecord()->getPrimaryPhone(),
474                 'fax' => $model->user->getOfficeRecord()->getFax(),
475                 'email' => $model->user->getOfficeRecord()->getPrimaryEmail(),
476                 'link' => Yii::app()->createUrl('/office/view', array('id' => $model->user->OfficeID))
477             )

Stack Trace

#0
+
 /home/remaxgr/public_html/protected/controllers/front/PropertyController.php(183): PropertyController->get_details(Property, "GR", Location)
178             'contactFormModel' => $contactFormModel,
179             'stfModel' => $stfModel,
180             'infobar' => $infobar,
181             'breadcrumbs' => $this->getBreadcrumbs($model),
182             'tabs' => $this->get_available_tabs($model),
183             'details' => $this->get_details($model, $language, $location),
184             'related_links' => $this->get_related_links($model, $location, $language, $assignment_types, $query_string['variable']['property_type_info']),
185             'recent_properties' => $this->get_recent_viewed_session($model, $session),
186             'exclusiveness' => $exclusiveness,
187             'character_msg' => $property_character_msg,
188             'sold_or_rent' => $sold_or_rent,
#10
+
 /home/remaxgr/public_html/protected/components/WebApplicationEndBehavior.php(29): CApplication->run()
24         // Attach the changeModulePaths event handler
25         // and raise it.
26         $this->onModuleCreate = array($this, 'changeModulePaths');
27         $this->onModuleCreate(new CEvent($this->owner));
28 
29         $this->owner->run(); // Run application.
30     }
31 
32     // This event should be raised when CWebApplication
33     // or CWebModule instances are being initialized.
34     public function onModuleCreate($event)
#12
+
 /home/remaxgr/public_html/index.php(19): CComponent->__call("runEnd", array("front"))
14 
15 //Enable for production
16 //Require Google Client autoloader before the yii autoloader to prevent
17 //require_once(dirname(__FILE__). '/protected/vendors/google-api-php-client/vendor/autoload.php');
18 require_once($yii);
19 Yii::createWebApplication($config)->runEnd('front');
2024-03-28 16:15:32 Apache/2.4.58 (cPanel) OpenSSL/1.1.1w mod_bwlimited/1.4 Yii Framework/1.1.7