Category Archives: Issues

Issues related to Real estate agency portal

I receive invalid DB Connection String/ hostname / port

if you have problem with hostname, in standard hosting providers this should be localhost, but sometimes not and depends on hosting provider. Please ask your hosting provider which MySQL database hostname and port you should use for database access.

You can also test your database details with this basic connection code to be sure that it’s right:

<?php
$servername = "localhost";
$username = "your-username";
$password = "your-password";
$database_name = "your-database-name";

$conn = new mysqli($servername, $username, $password, $database_name);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>

Source: http://www.w3schools.com/php/php_mysql_connect.asp

If your database connection works and you still have issue with script connection then please provide me your cpanel login details, database details and website link for test, via email: sanljiljan@geniuscript.com

How to move the portal script to another host / server?

First you should buy another hosting package for your website, my suggestion where everything is tested and works nice:

a2_hosting_logo

  1. Copy all files and export-import database via phpMyAdmin
  2. Manually configure database details in file application\config\production\database.php
  3. Check configuration file application\config\config.php, specially line 29 and line 41, sometimes you need change .htaccess file because of removing index.php or customizations
  4. Change codecanyon_username and purchase_code in file: application\config\cms_config.php with new one (one purchase code is for one installation only)

Possible ssues after move (blank screen or similar):

  • Hard-coded website domain in application\config\config.php : http://iwinter.com.hr/support/?p=64
  • Wrong quotes in application\config\production\database.php or other config file
  • Different PHP version on new server (Best will be 5.6)
  • mysql db driver not supported, you should try with mysqli, just replace in database config file or select when installing

Quote issue example:

quote_issue

You can’t login after moving issues:

Script using advanced hashing methods to protect passwords saved in database, if your server doesn’t support same as localhost, then login will not work on any account.

In that case you should register new account, and manually define it as admin to login as admin, for this you should:

Login to your Cpanel->PHPMyAdmin->Open database table users and change type of added user to ADMIN:

user_login_issue

 

I translate everything, but search doesn’t work, parameters like {option_1} is displayed etc…

PDF file with screenshots: http://map-kiosk.com/codecanyon/translate_instructions.pdf

Looks that you forget to translate something, please check in that order:

  1. Login to admin
  2. Pages->Edit every page->click on tab “your_language” and translate all values
  3. Real Estates->Fields->Edit every Field->click on tab “your_language” and translate all values
    *hint: After changes you should edit->save again all your properties, specially for purpose field!
    Don’t translate marker and badget values, just copy-paste
  4. Real Estates->Manage->Edit every property->click on tab “your_language” and translate all values

Additionaly if some base translation missing on frontend:

You should translate this via administration for your language:

Admin->Settings->Languages->Translate files for wanted language->frontend_template_lang.php->translate missing fields

If some words are missing, you can add it in file:
templates\{template_name}\language\english\frontend_template_lang.php

* {template_name} is your template, usually bootstrap2-responsive, realocation, …

*Hint: You can also use auto translation feature (button on top) using Google or MyMemory API
* Marker and badget field should not be translated, detailed guide: http://iwinter.com.hr/support/?p=52
* “Rent” word translation should be same in purpose field and frontend_template_lang.php to work properly, in other case you will not see fromdate-todate on property preview page.

Also can be translated manually via file:
templates\{template_name}\language\{wanted_language}\frontend_template_lang.php

If you want to translate Admin interface:

Admin->Settings->Languages->Translate files->Translate min. all fields in backend_base_lang.php

*Hint: You can also use auto translation feature (button on top) using Google or MyMemory API

Also can be translated manually via file:
application\language\{wanted_language}\backend_base_lang.php

Admin login page:

On admin login page, we don’t know which language to show, because of that it showing default defined in config file “english”, if you want to change this just change langauge in:
application\config\config.php

Writing permission errors on configuration or after, or file uploading/deleting, files translation doesn’t work from admin?

Looks like your server don’t give permission to PHP script for write/delete files on server. Solution is to chmod 755 in following files/folders:

/templates/{your-template}/assets/cache and all files inside
/files/thumbnail and all files inside
/files/captcha and all files inside
/files and all files inside
/application/config/cms_config.php
/application/config/production/database.php
/application/language and all files/folders inside
/system/language and all files/folders inside
/templates/bootstrap2-responsive/language and all files/folders inside
/templates/bootstrap2/language and all files/folders inside
/application/logs and all files/folders inside
/sitemap.xml

If doesn’t help, you can try with chmod 777

Godaddy and simmilar hosting problems like “No input file specified.” or unexplained redirections problem.

Improved godaddy configuration instructions:

Go to your godaddy account file manager –> WebRoot directory –> Create php5.ini if it does not exist and place following line: cgi.fix_pathinfo = 1 and remove other lines if exists

Now you need to restart your Web Process: Log in to your Account Manager. Click Web Hosting. Next to the hosting account you want to use, click Manage. In the Stats & Monitors section, click System Processes.

In the list on the left, click the process you want to view or click All Processes to view all processes at once. To end a process, click the corresponding end button on the toolbar. Usual just click “End all”.

If you still have issue then configure specific settings in “application/config/config.php”, for me this works:

$config['base_url']    = 'http://example.com/';
$config['uri_protocol']    = 'PATH_INFO';

Or you can try old techniques (not suggested, above solution is much better):

  1. In file “application/config/config.php”
    On line 42, change from:

    $config['index_page'] = 'index.php';

    to

    $config['index_page'] = 'index.php?';
  2. If problem still exists, then On line 60, change from:
    $config['uri_protocol'] = 'AUTO';

    to

    $config['uri_protocol'] = 'QUERY_STRING';

CodeIgniter guide: https://github.com/EllisLab/CodeIgniter/wiki/Godaddy-Installation-Tips

Regarding hosting providers, my scripts are tested on:

a2_hosting_logo

And my suggestion if you decide to purchase by other hosting provider, please save your money/time and don’t buy from godaddy, goddady is good for domains but not for hosting because of many configuration limitations!

Clustering problem on map

You can find clustering configuration in template file.

in case of template bootstrap2-responsive can be found in:

templates\bootstrap2-responsive\components\head.php, line around 110:

In latest script version file: templates\{your-template}\widgets\head.php

// Cluster config start //
clusterConfig = {
radius: 60,
// This style will be used for clusters with more than 2 markers
2: {
content: "<div class='cluster cluster-1'>CLUSTER_COUNT</div>",
width: 53,
height: 52
},
// This style will be used for clusters with more than 5 markers
5: {
content: "<div class='cluster cluster-1'>CLUSTER_COUNT</div>",
width: 53,
height: 52
},
// This style will be used for clusters with more than 20 markers
20: {
content: "<div class='cluster cluster-2'>CLUSTER_COUNT</div>",
width: 56,
height: 55
},
// This style will be used for clusters with more than 50 markers
50: {
content: "<div class='cluster cluster-3'>CLUSTER_COUNT</div>",
width: 66,
height: 65
},

Or in case of realocation:

templates\realocation\assets\js\map_custom.js