A PHP Error was encountered

Severity: Warning

Message: file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0

Filename: controllers/Main.php

Line Number: 1091

Backtrace:

File: /home2/bitesup/public_html/application/controllers/Main.php
Line: 1091
Function: file_get_contents

File: /home2/bitesup/public_html/application/controllers/Main.php
Line: 30
Function: get_country_by_ip

File: /home2/bitesup/public_html/index.php
Line: 298
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: file_get_contents(http://www.geoplugin.net/php.gp?ip=54.162.133.222): failed to open stream: no suitable wrapper could be found

Filename: controllers/Main.php

Line Number: 1091

Backtrace:

File: /home2/bitesup/public_html/application/controllers/Main.php
Line: 1091
Function: file_get_contents

File: /home2/bitesup/public_html/application/controllers/Main.php
Line: 30
Function: get_country_by_ip

File: /home2/bitesup/public_html/index.php
Line: 298
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0

Filename: controllers/Main.php

Line Number: 1226

Backtrace:

File: /home2/bitesup/public_html/application/controllers/Main.php
Line: 1226
Function: file_get_contents

File: /home2/bitesup/public_html/application/controllers/Main.php
Line: 33
Function: get_my_city_by_ip

File: /home2/bitesup/public_html/index.php
Line: 298
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: file_get_contents(http://ipinfo.io/54.162.133.222): failed to open stream: no suitable wrapper could be found

Filename: controllers/Main.php

Line Number: 1226

Backtrace:

File: /home2/bitesup/public_html/application/controllers/Main.php
Line: 1226
Function: file_get_contents

File: /home2/bitesup/public_html/application/controllers/Main.php
Line: 33
Function: get_my_city_by_ip

File: /home2/bitesup/public_html/index.php
Line: 298
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: controllers/Main.php

Line Number: 1227

Backtrace:

File: /home2/bitesup/public_html/application/controllers/Main.php
Line: 1227
Function: _error_handler

File: /home2/bitesup/public_html/application/controllers/Main.php
Line: 33
Function: get_my_city_by_ip

File: /home2/bitesup/public_html/index.php
Line: 298
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home2/bitesup/public_html/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 568

Backtrace:

File: /home2/bitesup/public_html/application/models/Restaurant_model.php
Line: 212
Function: get

File: /home2/bitesup/public_html/application/controllers/Main.php
Line: 37
Function: get_featured_restaurant_location

File: /home2/bitesup/public_html/index.php
Line: 298
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 `restaurant`.`city_id` IS NULL GROUP BY `restaurant`.`id` ORDER BY `restaura' at line 8

SELECT `restaurant`.`id` AS `restaurant_id`, `restaurant`.`name` AS `restaurant_name`, `restaurant`.`logo_url` AS `logo_url`, `restaurant`.`cover_image_url` AS `cover_image_url`, `restaurant`.`description` AS `description`, `restaurant`.`website_address` AS `website_address`, `restaurant`.`server` AS `restaurant_server`, `restaurant`.`min_price` AS `restaurant_min_price`, `restaurant`.`max_price` AS `restaurant_max_price`, `restaurant`.`min_order` AS `restaurant_min_order`, `restaurant`.`delivery_charges` AS `delivery_charges`, `restaurant`.`restaurant_discount` AS `restaurant_discount`, `hb_countries`.`country_name` as `country_name`, `cities`.`city_name` as `city_name`, `cuisine_type`.`name` as `cousine_name`, COUNT(restaurant_comments.restaurant_id) AS restaurant_reviews, (SUM(restaurant_comments.rating) / COUNT(restaurant_comments.user_id)) AS average_vote FROM `restaurant` LEFT JOIN `restaurant_comments` ON `restaurant`.`id` =`restaurant_comments`.`restaurant_id` LEFT JOIN `hb_countries` ON `hb_countries`.`country_id`=`restaurant`.`country_id` LEFT JOIN `cities` ON `restaurant`.`city_id` = `cities`.`city_id` LEFT JOIN `restaurant_cuisine_type` ON `restaurant_cuisine_type`.`restaurant_id` =`restaurant`.`id` LEFT JOIN `cuisine_type` ON `cuisine_type`.`id` =`restaurant_cuisine_type`.`cuisine_type_id` WHERE `restaurant`.`country_id` = AND `restaurant`.`city_id` IS NULL GROUP BY `restaurant`.`id` ORDER BY `restaurant_reviews` DESC LIMIT 6

Filename: models/Restaurant_model.php

Line Number: 212