A PHP Error was encountered

Severity: Warning

Message: Undefined array key 0

Filename: models/Products_model.php

Line Number: 27

Backtrace:

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

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

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

A PHP Error was encountered

Severity: Warning

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

Filename: models/Products_model.php

Line Number: 28

Backtrace:

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

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

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

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "image"

Filename: models/Products_model.php

Line Number: 29

Backtrace:

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

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

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

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "category"

Filename: controllers/Products.php

Line Number: 57

Backtrace:

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

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

A PHP Error was encountered

Severity: Warning

Message: Undefined array key 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: 57
Function: subcategory_path_id

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

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "category"

Filename: controllers/Products.php

Line Number: 58

Backtrace:

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

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

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "id"

Filename: controllers/Products.php

Line Number: 58

Backtrace:

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

File: /home/roto/public_html/index.php
Line: 335
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: 564

Backtrace:

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

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

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

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

SELECT products.*, IF(products.image <> '', products.image, 'style_admin/assets/images/no_photo.jpg') AS image FROM products WHERE products.category = AND products.id <> LIMIT 0,12

Filename: models/Common_model.php

Line Number: 232