A PHP Error was encountered

Severity: Warning

Message: file_get_contents(https://maps.googleapis.com/maps/api/geocode/json?latlng=&key=AIzaSyAmCwd_j3Uv1sydRnl_o14jVdrqKFCzfpI&sensor=false): failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request

Filename: helpers/gioloaction_helper.php

Line Number: 8

Backtrace:

File: /home/pathgac4/public_html/indianstor.com/listing/application/helpers/gioloaction_helper.php
Line: 8
Function: file_get_contents

File: /home/pathgac4/public_html/indianstor.com/listing/application/models/Business_Model.php
Line: 22
Function: getaddress

File: /home/pathgac4/public_html/indianstor.com/listing/application/controllers/Home_Controller.php
Line: 295
Function: getByid

File: /home/pathgac4/public_html/indianstor.com/listing/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: helpers/gioloaction_helper.php

Line Number: 18

Backtrace:

File: /home/pathgac4/public_html/indianstor.com/listing/application/helpers/gioloaction_helper.php
Line: 18
Function: _error_handler

File: /home/pathgac4/public_html/indianstor.com/listing/application/models/Business_Model.php
Line: 22
Function: getaddress

File: /home/pathgac4/public_html/indianstor.com/listing/application/controllers/Home_Controller.php
Line: 295
Function: getByid

File: /home/pathgac4/public_html/indianstor.com/listing/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: helpers/gioloaction_helper.php

Line Number: 20

Backtrace:

File: /home/pathgac4/public_html/indianstor.com/listing/application/helpers/gioloaction_helper.php
Line: 20
Function: _error_handler

File: /home/pathgac4/public_html/indianstor.com/listing/application/models/Business_Model.php
Line: 22
Function: getaddress

File: /home/pathgac4/public_html/indianstor.com/listing/application/controllers/Home_Controller.php
Line: 295
Function: getByid

File: /home/pathgac4/public_html/indianstor.com/listing/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: helpers/gioloaction_helper.php

Line Number: 24

Backtrace:

File: /home/pathgac4/public_html/indianstor.com/listing/application/helpers/gioloaction_helper.php
Line: 24
Function: _error_handler

File: /home/pathgac4/public_html/indianstor.com/listing/application/models/Business_Model.php
Line: 22
Function: getaddress

File: /home/pathgac4/public_html/indianstor.com/listing/application/controllers/Home_Controller.php
Line: 295
Function: getByid

File: /home/pathgac4/public_html/indianstor.com/listing/index.php
Line: 316
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/pathgac4/public_html/indianstor.com/listing/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/pathgac4/public_html/indianstor.com/listing/application/models/Business_Model.php
Line: 58
Function: get

File: /home/pathgac4/public_html/indianstor.com/listing/application/controllers/Home_Controller.php
Line: 295
Function: getByid

File: /home/pathgac4/public_html/indianstor.com/listing/index.php
Line: 316
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and (`pb`.`bs_status` = 1 and `pb`.`bs_type_id` = 45 ) LIMIT 6' at line 7

SELECT * FROM `posted_business` `pb` LEFT JOIN `services` `ss` ON `ss`.`service_id` = `pb`.`bs_type_id` LEFT JOIN `countries` `cn` ON `cn`.`id` = `pb`.`country_id` LEFT JOIN `states` `st` ON `st`.`id` = `pb`.`state_id` LEFT JOIN `cities` `c` ON `c`.`id` = `pb`.`city_id` WHERE and (`pb`.`bs_status` = 1 and `pb`.`bs_type_id` = 45 ) LIMIT 6

Filename: models/Business_Model.php

Line Number: 58