A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: models/Products_model.php

Line Number: 63

Backtrace:

File: /home/roto/public_html/app/models/Products_model.php
Line: 63
Function: _error_handler

File: /home/roto/public_html/app/controllers/Products.php
Line: 88
Function: single_product_slug

File: /home/roto/public_html/index.php
Line: 345
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to access array offset on value of type null

Filename: models/Products_model.php

Line Number: 64

Backtrace:

File: /home/roto/public_html/app/models/Products_model.php
Line: 64
Function: _error_handler

File: /home/roto/public_html/app/controllers/Products.php
Line: 88
Function: single_product_slug

File: /home/roto/public_html/index.php
Line: 345
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: image

Filename: models/Products_model.php

Line Number: 65

Backtrace:

File: /home/roto/public_html/app/models/Products_model.php
Line: 65
Function: _error_handler

File: /home/roto/public_html/app/controllers/Products.php
Line: 88
Function: single_product_slug

File: /home/roto/public_html/index.php
Line: 345
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: category

Filename: controllers/Products.php

Line Number: 89

Backtrace:

File: /home/roto/public_html/app/controllers/Products.php
Line: 89
Function: _error_handler

File: /home/roto/public_html/index.php
Line: 345
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: models/Categories_model.php

Line Number: 64

Backtrace:

File: /home/roto/public_html/app/models/Categories_model.php
Line: 64
Function: _error_handler

File: /home/roto/public_html/app/controllers/Products.php
Line: 89
Function: subcategory_path_id

File: /home/roto/public_html/index.php
Line: 345
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: category

Filename: controllers/Products.php

Line Number: 90

Backtrace:

File: /home/roto/public_html/app/controllers/Products.php
Line: 90
Function: _error_handler

File: /home/roto/public_html/index.php
Line: 345
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined index: id

Filename: controllers/Products.php

Line Number: 90

Backtrace:

File: /home/roto/public_html/app/controllers/Products.php
Line: 90
Function: _error_handler

File: /home/roto/public_html/index.php
Line: 345
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/roto/public_html/sys/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/roto/public_html/app/models/Common_model.php
Line: 242
Function: query

File: /home/roto/public_html/app/models/Products_model.php
Line: 92
Function: get_table

File: /home/roto/public_html/app/controllers/Products.php
Line: 90
Function: products_same_category

File: /home/roto/public_html/index.php
Line: 345
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 'AND products.id <> LIMIT 0,12' at line 22

SELECT products.*, IF(products.image <> '', products.image, 'style_admin/assets/images/no_photo.jpg') AS image, CASE WHEN actions.tip = 'din' THEN (products.price - actions.discount) WHEN actions.tip = '%' THEN CEIL(products.price * (100 - actions.discount) / 100) ELSE products.price END AS price, CASE WHEN actions.tip = '%' THEN CONCAT('-', actions.discount, ' %') WHEN actions.tip = 'din' THEN CONCAT('-', actions.discount, ' din') ELSE '' END AS sale_type, CASE WHEN actions.tip IN ('%','din') THEN products.price ELSE '' END AS old_price FROM products LEFT JOIN actions_product ON actions_product.products_id = products.id LEFT JOIN actions_attributes ON actions_attributes.actions_id = actions_product.actions_id LEFT JOIN attribute_actions ON actions_attributes.attribute_id = attribute_actions.id LEFT JOIN actions ON (actions.id = actions_product.actions_id AND DATE(NOW()) BETWEEN started AND ending) WHERE products.category = AND products.id <> LIMIT 0,12

Filename: models/Common_model.php

Line Number: 242