A PHP Error was encountered

Severity: 8192

Message: explode(): Passing null to parameter #2 ($string) of type string is deprecated

Filename: controllers/Products.php

Line Number: 390

Backtrace:

File: /home/monther/cart.wheel.jo/application/controllers/Products.php
Line: 390
Function: explode

File: /home/monther/cart.wheel.jo/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/monther/cart.wheel.jo/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 565

Backtrace:

File: /home/monther/cart.wheel.jo/application/helpers/function_helper.php
Line: 361
Function: get

File: /home/monther/cart.wheel.jo/application/controllers/Products.php
Line: 474
Function: fetch_product

File: /home/monther/cart.wheel.jo/index.php
Line: 315
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 MariaDB server version for the right syntax to use near '-24, 12' at line 25

SELECT (select count(id) from products where products.category_id=c.id ) as total, count(p.id) as sales, `p`.`stock_type`, `p`.`is_prices_inclusive_tax`, `p`.`type`, GROUP_CONCAT(DISTINCT(pa.attribute_value_ids)) as attr_value_ids, `sd`.`rating` as `seller_rating`, `sd`.`slug` as `seller_slug`, `sd`.`no_of_ratings` as `seller_no_of_ratings`, `sd`.`logo` as `seller_profile`, `sd`.`store_name` as `store_name`, `sd`.`store_description`, `p`.`seller_id`, `u`.`username` as `seller_name`, `p`.`id`, `p`.`stock`, `p`.`name`, `p`.`category_id`, `p`.`short_description`, `p`.`slug`, `p`.`description`, `p`.`extra_description`, `p`.`total_allowed_quantity`, `p`.`status`, `p`.`deliverable_type`, `p`.`deliverable_zipcodes`, `p`.`minimum_order_quantity`, `p`.`sku`, `p`.`quantity_step_size`, `p`.`cod_allowed`, `p`.`row_order`, `p`.`rating`, `p`.`no_of_ratings`, `p`.`image`, `p`.`is_returnable`, `p`.`is_cancelable`, `p`.`cancelable_till`, `p`.`indicator`, `p`.`other_images`, `p`.`video_type`, `p`.`video`, `p`.`tags`, `p`.`warranty_period`, `p`.`guarantee_period`, `p`.`made_in`, `p`.`hsn_code`, `p`.`download_allowed`, `p`.`download_type`, `p`.`download_link`, `p`.`pickup_location`, `p`.`brand`, `p`.`availability`, `c`.`name` as `category_name`, `tax`.`percentage` as `tax_percentage`, `tax`.`id` as `tax_id` FROM `products` `p` LEFT JOIN `categories` `c` ON `p`.`category_id`=`c`.`id` LEFT JOIN `seller_data` `sd` ON `p`.`seller_id`=`sd`.`user_id` LEFT JOIN `users` `u` ON `p`.`seller_id`=`u`.`id` LEFT JOIN `product_variants` `pv` ON `p`.`id` = `pv`.`product_id` LEFT JOIN `taxes` `tax` ON `tax`.`id` = `p`.`tax` LEFT JOIN `product_attributes` `pa` ON `pa`.`product_id` = `p`.`id` WHERE ( `p`.`category_id` IN('45') OR `c`.`parent_id` IN('45') ) AND `p`.`status` = '1' AND `pv`.`status` = 1 AND `sd`.`status` = 1 AND `p`.`status` = '1' AND `pv`.`status` = 1 AND `sd`.`status` = 1 AND ( `c`.`status` = '1' OR `c`.`status` = '0' ) GROUP BY `p`.`id` ORDER BY `p`.`id` DESC, `p`.`row_order` ASC LIMIT -24, 12

Filename: helpers/function_helper.php

Line Number: 361