A PHP Error was encountered

Severity: Warning

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

Filename: models/search_model.php

Line Number: 55

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: key

Filename: models/search_model.php

Line Number: 56

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_gender

Filename: models/search_model.php

Line Number: 77

A PHP Error was encountered

Severity: Warning

Message: in_array() expects parameter 2 to be array, null given

Filename: models/search_model.php

Line Number: 77

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_gender

Filename: models/search_model.php

Line Number: 78

A PHP Error was encountered

Severity: Warning

Message: in_array() expects parameter 2 to be array, null given

Filename: models/search_model.php

Line Number: 78

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_gender

Filename: models/search_model.php

Line Number: 79

A PHP Error was encountered

Severity: Warning

Message: in_array() expects parameter 2 to be array, null given

Filename: models/search_model.php

Line Number: 79

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_gender

Filename: models/search_model.php

Line Number: 80

A PHP Error was encountered

Severity: Warning

Message: in_array() expects parameter 2 to be array, null given

Filename: models/search_model.php

Line Number: 80

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_gender

Filename: models/search_model.php

Line Number: 81

A PHP Error was encountered

Severity: Warning

Message: in_array() expects parameter 2 to be array, null given

Filename: models/search_model.php

Line Number: 81

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_gender

Filename: models/search_model.php

Line Number: 81

A PHP Error was encountered

Severity: Warning

Message: in_array() expects parameter 2 to be array, null given

Filename: models/search_model.php

Line Number: 81

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_gender

Filename: models/search_model.php

Line Number: 82

A PHP Error was encountered

Severity: Warning

Message: in_array() expects parameter 2 to be array, null given

Filename: models/search_model.php

Line Number: 82

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_gender

Filename: models/search_model.php

Line Number: 82

A PHP Error was encountered

Severity: Warning

Message: in_array() expects parameter 2 to be array, null given

Filename: models/search_model.php

Line Number: 82

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_gender

Filename: models/search_model.php

Line Number: 83

A PHP Error was encountered

Severity: Warning

Message: in_array() expects parameter 2 to be array, null given

Filename: models/search_model.php

Line Number: 83

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_gender

Filename: models/search_model.php

Line Number: 83

A PHP Error was encountered

Severity: Warning

Message: in_array() expects parameter 2 to be array, null given

Filename: models/search_model.php

Line Number: 83

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_gender

Filename: models/search_model.php

Line Number: 83

A PHP Error was encountered

Severity: Warning

Message: in_array() expects parameter 2 to be array, null given

Filename: models/search_model.php

Line Number: 83

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_gender

Filename: models/search_model.php

Line Number: 84

A PHP Error was encountered

Severity: Warning

Message: in_array() expects parameter 2 to be array, null given

Filename: models/search_model.php

Line Number: 84

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_gender

Filename: models/search_model.php

Line Number: 84

A PHP Error was encountered

Severity: Warning

Message: in_array() expects parameter 2 to be array, null given

Filename: models/search_model.php

Line Number: 84

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_gender

Filename: models/search_model.php

Line Number: 84

A PHP Error was encountered

Severity: Warning

Message: in_array() expects parameter 2 to be array, null given

Filename: models/search_model.php

Line Number: 84

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_sale

Filename: models/search_model.php

Line Number: 86

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_new

Filename: models/search_model.php

Line Number: 88

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_category

Filename: models/search_model.php

Line Number: 90

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_price

Filename: models/search_model.php

Line Number: 98

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_size

Filename: models/search_model.php

Line Number: 100

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_brand

Filename: models/search_model.php

Line Number: 104

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_age

Filename: models/search_model.php

Line Number: 106

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_fall

Filename: models/search_model.php

Line Number: 113

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_spring

Filename: models/search_model.php

Line Number: 113

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_action

Filename: models/search_model.php

Line Number: 119

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_special

Filename: models/search_model.php

Line Number: 121

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_layette

Filename: models/search_model.php

Line Number: 123

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_colors

Filename: models/search_model.php

Line Number: 125

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_gift

Filename: models/search_model.php

Line Number: 130

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: check_jeans

Filename: models/search_model.php

Line Number: 132

A PHP Error was encountered

Severity: Notice

Message: Undefined index: items_per_page

Filename: models/search_model.php

Line Number: 137

A PHP Error was encountered

Severity: Warning

Message: Division by zero

Filename: models/search_model.php

Line Number: 137

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /var/www/suncemoje.rs/system/core/Exceptions.php:185)

Filename: libraries/Session.php

Line Number: 675

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: sort

Filename: models/search_model.php

Line Number: 141

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: current_page

Filename: models/search_model.php

Line Number: 142

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: items_per_page

Filename: models/search_model.php

Line Number: 142

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: items_per_page

Filename: models/search_model.php

Line Number: 142

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /var/www/suncemoje.rs/system/core/Exceptions.php:185)

Filename: core/Common.php

Line Number: 444

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 'LIMIT 0, 0' at line 52

SELECT wp.product_id, wp.name as product_name, wp.is_new, CASE WHEN so.product_id IS NULL THEN 0 ELSE 1 END AS special, CASE WHEN a.product_id IS NULL THEN wp.is_sale ELSE 1 END AS is_sale, wp.is_boy, wp.is_girl, wp.is_spring, wp.is_fall, wp.description, CASE WHEN a.product_id IS NULL OR wp.presale_price > 0 THEN REPLACE(FORMAT(ROUND(wp.presale_price), 0), ',', '.') ELSE REPLACE(FORMAT(ROUND(p.retail_price), 0), ',', '.') END as presale_price, CASE WHEN a.product_id IS NULL THEN REPLACE(FORMAT(ROUND(p.retail_price, 0), 0), ',', '.') ELSE REPLACE(FORMAT(ROUND(p.retail_price*1.00, -1), 0), ',', '.') END as retail_price, CASE WHEN a.product_id IS NULL THEN ROUND(p.retail_price, 0) ELSE ROUND(p.retail_price*1.00, -1) END AS numeric_retail_price, b.name AS brand_name, CASE WHEN a.product_id IS NULL THEN 0 ELSE 1 END AS action FROM web_product wp JOIN product p ON wp.product_id = p.product_id JOIN category c ON wp.category_id = c.category_id JOIN brand b ON p.brand_id = b.brand_id LEFT JOIN web_product_action a ON wp.product_id = a.product_id LEFT JOIN web_product_special_offer so ON wp.product_id = so.product_id WHERE wp.is_active = 1 AND EXISTS (SELECT 1 FROM size_stock ss WHERE ss.outlet_id=1 AND ss.product_id = wp.product_id AND ss.qty > 0) AND ( wp.name LIKE '%%' OR wp.description LIKE '%%' OR wp.info LIKE '%%' OR c.name LIKE '%%' OR b.name LIKE '%%')ORDER BY LIMIT 0, 0

Filename: /var/www/suncemoje.rs/models/search_model.php

Line Number: 144