Error's in Open Real Estate 1.4.2 version

Write about issues that you have found.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

Error's in Open Real Estate 1.4.2 version

Postby support » 26 Mar 2013, 16:13

Here you can write only about errors that you have found in the installed version 1.4.2 (not on the demo site that is http://re-free.monoray.net/).

Try to avoid unnecessary words and discussions - appreciate time of other forum users who are looking for answers to their questions.

Please, state the problem clearly. If you have found a solution yourself, be not lazy to publish it here.
support
Citizen
Citizen
 
Posts: 90
Joined: 28 Dec 2011, 13:14
Reputation point: 0

Error's in Open Real Estate 1.4.2 version

Postby Xpycm » 26 Mar 2013, 16:16

1.Error (only in a free version):

Fatal error: Class 'Seo' not found in ..../protected/modules/service/views/index.php on line 7
file change:
Code: Select all
<title><?php echo CHtml::encode(Seo::getSeoValue('siteName')); ?></title>
<meta name="description" content="<?php echo CHtml::encode(Seo::getSeoValue('siteDescription')); ?>" />
<meta name="keywords" content="<?php echo CHtml::encode(Seo::getSeoValue('siteKeywords')); ?>" />


for:
Code: Select all
<title><?php echo CHtml::encode($this->seoTitle ? $this->seoTitle : $this->pageTitle); ?></title>
<meta name="description" content="<?php echo CHtml::encode($this->seoDescription ? $this->seoDescription : $this->pageDescription); ?>" />
<meta name="keywords" content="<?php echo CHtml::encode($this->seoKeywords ? $this->seoKeywords : $this->pageKeywords); ?>" />
Open Real Estate CMS: FAQ | FAQ 2 | FAQ 3
Image
Xpycm
Web Developer
Web Developer
 
Posts: 213
Joined: 30 Dec 2011, 11:06
Reputation point: 2

Error's in Open Real Estate 1.4.2 version

Postby Xpycm » 26 Mar 2013, 16:17

2.Error: After saving the listing there is no ability to uncheck the references 'Security', 'Comfort', 'Kitchen' etc.

Put the protected\modules\apartments\models\Apartment.php, method public function saveCategories() file out of the condition 'if(isset($_POST['category']))'

Code: Select all
$sql = 'DELETE FROM {{apartment_reference}} WHERE apartment_id="'.$this->id.'"';
Yii::app()->db->createCommand($sql)->execute();  


So you will have as a result:

Code: Select all
public function saveCategories(){
    $sql = 'DELETE FROM {{apartment_reference}} WHERE apartment_id="'.$this->id.'"';
    Yii::app()->db->createCommand($sql)->execute();

    if(isset($_POST['category'])){
        foreach($_POST['category'] as $catId => $value){
            foreach($value as $valId => $val){
                $sql = 'INSERT INTO {{apartment_reference}} (reference_id, reference_value_id, apartment_id)
                    VALUES (:refId, :refValId, :apId) '
;
                $command = Yii::app()->db->createCommand($sql);
                $command->bindValue(":refId", $catId, PDO::PARAM_INT);
                $command->bindValue(":refValId", $valId, PDO::PARAM_INT);
                $command->bindValue(":apId", $this->id, PDO::PARAM_INT);
                $command->execute();
            }
        }
    }
}
  
Open Real Estate CMS: FAQ | FAQ 2 | FAQ 3
Image
Xpycm
Web Developer
Web Developer
 
Posts: 213
Joined: 30 Dec 2011, 11:06
Reputation point: 2

Re: Error's in Open Real Estate 1.4.2 version

Postby Xpycm » 26 Mar 2013, 16:19

3.Error: The similar listings are not displayed.

Solution: In the protected\modules\similarads\models\SimilarAds.php file change:

Code: Select all
Yii::import('application.modules.apartments.helpers.apartmentsHelper');
$similarAds = array();
$similarAds apartmentsHelper::getApartments(1000$criteria);

return (isset(
$similarAds['apartments']) && is_array($similarAds['apartments'])) ? $similarAds['apartments'] : '';  


for:
Code: Select all

Yii
::import('application.modules.apartments.helpers.apartmentsHelper');

$similarAds = array();
$similarAds['apartments'] = Apartment::model()
    ->
cache(param('cachingTime'1209600), Apartment::getImagesDependency())
    ->
with(array('images'))
    ->
findAll($criteria);

return (
is_array($similarAds['apartments']) && count($similarAds['apartments'])) ? $similarAds['apartments'] : '';  
Open Real Estate CMS: FAQ | FAQ 2 | FAQ 3
Image
Xpycm
Web Developer
Web Developer
 
Posts: 213
Joined: 30 Dec 2011, 11:06
Reputation point: 2

Re: Error's in Open Real Estate 1.4.2 version

Postby Xpycm » 26 Mar 2013, 16:20

4 Error: You get an error if you click 'RSS' icon after searching when no listings are found.

Solution:
Add to protected\modules\rss\components\RssWidget.php file

Code: Select all
if (!$maxDateUpdated)
    
$maxDateUpdated date("r");  


after:

Code: Select all
$maxDateUpdated Apartment::model()->find($subCriteria);
$maxDateUpdated $maxDateUpdated->date_updated
Open Real Estate CMS: FAQ | FAQ 2 | FAQ 3
Image
Xpycm
Web Developer
Web Developer
 
Posts: 213
Joined: 30 Dec 2011, 11:06
Reputation point: 2

Re: Error's in Open Real Estate 1.4.2 version

Postby andipas » 24 Apr 2013, 10:29

Wrong canonical url in the free version.

Solution: In the/protected/controllers/SiteController.php file change:

Code: Select all

Yii
::app()->clientScript->registerLinkTag('canonical'nullYii::app()->getBaseUrl(true).'/'.Yii::app()->language);
  


for

Code: Select all

        $canonicalUrl 
Yii::app()->getBaseUrl(true);
        if(!
isFree()){
            
$canonicalUrl .= '/'.Yii::app()->language;
        }
    
Yii::app()->clientScript->registerLinkTag('canonical'null$canonicalUrl);
  
andipas
Web Developer
Web Developer
 
Posts: 91
Joined: 28 Dec 2011, 22:37
Reputation point: 1

Re: Error's in Open Real Estate 1.4.2 version

Postby seanbraun » 09 Oct 2013, 14:09

Hi, For a rundown of backed working frameworks and desktop supervisors, see System Configurations.
seanbraun
Stranger
 
Posts: 1
Joined: 09 Oct 2013, 14:05
Reputation point: 0

Re: Error's in Open Real Estate 1.4.2 version

Postby MarcieloAnderson » 11 Nov 2013, 08:59

These errors should be fix... when you list property it throws up 500 error " Property "Apartment.address_ru"i s not defined.
MarcieloAnderson
Stranger
 
Posts: 4
Joined: 11 Nov 2013, 08:45
Reputation point: 0

Re: Error's in Open Real Estate 1.4.2 version

Postby Foton » 12 Nov 2013, 12:59

How did you get this error?
Foton
Web Developer
Web Developer
 
Posts: 75
Joined: 26 Jan 2012, 14:58
Reputation point: 1


Return to Issues

Who is online

Users browsing this forum: No registered users and 1 guest

cron