A PHP Error was encountered

Severity: Warning

Message: array_map(): Argument #2 should be an array

Filename: food/base_controller.php

Line Number: 157

Backtrace:

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/application/controllers/frontend/food/base_controller.php
Line: 157
Function: array_map

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/application/controllers/frontend/food/base_controller.php
Line: 18
Function: get_banners

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/application/controllers/frontend/food/Promotion_controller.php
Line: 9
Function: __construct

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/index.php
Line: 313
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: implode(): Invalid arguments passed

Filename: food/base_controller.php

Line Number: 157

Backtrace:

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/application/controllers/frontend/food/base_controller.php
Line: 157
Function: implode

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/application/controllers/frontend/food/base_controller.php
Line: 18
Function: get_banners

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/application/controllers/frontend/food/Promotion_controller.php
Line: 9
Function: __construct

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/index.php
Line: 313
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: array_keys() expects parameter 1 to be array, boolean given

Filename: food/base_controller.php

Line Number: 166

Backtrace:

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/application/controllers/frontend/food/base_controller.php
Line: 166
Function: array_keys

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/application/controllers/frontend/food/base_controller.php
Line: 19
Function: get_banners_bullet

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/application/controllers/frontend/food/Promotion_controller.php
Line: 9
Function: __construct

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/index.php
Line: 313
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: array_map(): Argument #2 should be an array

Filename: food/base_controller.php

Line Number: 166

Backtrace:

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/application/controllers/frontend/food/base_controller.php
Line: 166
Function: array_map

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/application/controllers/frontend/food/base_controller.php
Line: 19
Function: get_banners_bullet

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/application/controllers/frontend/food/Promotion_controller.php
Line: 9
Function: __construct

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/index.php
Line: 313
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: implode(): Invalid arguments passed

Filename: food/base_controller.php

Line Number: 166

Backtrace:

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/application/controllers/frontend/food/base_controller.php
Line: 166
Function: implode

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/application/controllers/frontend/food/base_controller.php
Line: 19
Function: get_banners_bullet

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/application/controllers/frontend/food/Promotion_controller.php
Line: 9
Function: __construct

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/index.php
Line: 313
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /data/vhosts/betagro.com/subdomains/staging/httpdocs/system/core/Exceptions.php:272)

Filename: helpers/common_helper.php

Line Number: 117

Backtrace:

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/application/helpers/common_helper.php
Line: 117
Function: header

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/application/controllers/frontend/food/Promotion_controller.php
Line: 23
Function: arrx

File: /data/vhosts/betagro.com/subdomains/staging/httpdocs/index.php
Line: 313
Function: require_once

SELECT `contents`.`id`, `contents`.`parent_id`, `contents`.`level`, `contents`.`ordering`, `contents`.`created_date`, `contents`.`modified_date`, `contents`.`published_date`, `contents`.`is_published`, `contents`.`is_deleted`, `contents`.`created_by`, `contents`.`content_type`, `contents`.`start_date`, `contents`.`end_date`, `contents`.`is_home`, `contents`.`is_toplist`, `contents`.`is_highlight`, `contents`.`project_uri`, `contents`.`where_to_buy`, `contents`.`price`, `contents`.`youtube_link`, `contents`.`website_link`, `contents`.`facebook_link`, `contents`.`ig_link`, `contents`.`tel`, `contents`.`mobile`, `contents`.`postal`, `contents`.`house_no`, `contents`.`province_id`, `contents`.`district_id`, `contents`.`sub_district_id`, `contents`.`province`, `contents`.`district`, `contents`.`sub_district`, `contents`.`fax`, `contents`.`email`, `contents`.`lat`, `contents`.`long`, `contents`.`geography_id`, `contents`.`link_to`, `contents`.`home_start_date`, `contents`.`home_end_date`, `contents`.`country_id`, `contents`.`continent_id`, `contents`.`gmap_file_name`, `contents`.`home_ordering`, `contents`.`pdf_file_name`, `contents`.`pdf_attributes`, `contents`.`related_id`, `contents`.`thumb`, `translations`.`id` AS `translation_id`, `translations`.`parent_id` AS `translation_parent_id`, `translations`.`lang` AS `translation_lang`, `translations`.`title` AS `translation_title`, `translations`.`short_description` AS `translation_short_description`, `translations`.`description` AS `translation_description`, `translations`.`detail` AS `translation_detail`, `translations`.`created_date` AS `translation_created_date`, `translations`.`modified_date` AS `translation_modified_date`, `translations`.`published_date` AS `translation_published_date`, `translations`.`is_published` AS `translation_is_published`, `translations`.`created_by` AS `translation_created_by`, `translations`.`province` AS `translation_province`, `translations`.`district` AS `translation_district`, `translations`.`sub_district` AS `translation_sub_district`, `translations`.`street` AS `translation_street`, `translations`.`address1` AS `translation_address1`, `translations`.`address2` AS `translation_address2`, `translations`.`url` AS `translation_url`, `translations`.`isdelivery` AS `translation_isdelivery`, `languages`.`id` AS `language_id`, `languages`.`lang` AS `language_lang`
FROM `contents`
JOIN `contents_translations` ON `contents`.`id` = `contents_translations`.`content_id` AND `contents`.`project_uri` ='food'
JOIN `translations` ON `translations`.`id`=`contents_translations`.`translation_id` 
JOIN `languages` ON `translations`.`lang` = `languages`.`lang`
WHERE `translations`.`lang` = 'EN' 
AND `contents`.`is_published` = 1
AND ((contents.start_date <= CURDATE() AND `contents`.`end_date` is null) OR (`contents`.`start_date` <= CURDATE() AND contents.end_date >= CURDATE()))
AND `contents`.`content_type` = 'promotion'
ORDER BY `contents`.`ordering` desc, `language_id` ascArray
(
)