A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: models/Product_details.php

Line Number: 77

Backtrace:

File: /home/www/web73/html/2017-DE/application/models/Product_details.php
Line: 77
Function: _error_handler

File: /home/www/web73/html/2017-DE/application/controllers/Main.php
Line: 434
Function: get_cat_product

File: /home/www/web73/html/2017-DE/application/controllers/Main.php
Line: 262
Function: details

File: /home/www/web73/html/2017-DE/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: models/Product_details.php

Line Number: 83

Backtrace:

File: /home/www/web73/html/2017-DE/application/models/Product_details.php
Line: 83
Function: _error_handler

File: /home/www/web73/html/2017-DE/application/controllers/Main.php
Line: 434
Function: get_cat_product

File: /home/www/web73/html/2017-DE/application/controllers/Main.php
Line: 262
Function: details

File: /home/www/web73/html/2017-DE/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: cat

Filename: models/Product_details.php

Line Number: 146

Backtrace:

File: /home/www/web73/html/2017-DE/application/models/Product_details.php
Line: 146
Function: _error_handler

File: /home/www/web73/html/2017-DE/application/controllers/Main.php
Line: 434
Function: get_cat_product

File: /home/www/web73/html/2017-DE/application/controllers/Main.php
Line: 262
Function: details

File: /home/www/web73/html/2017-DE/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: subcat

Filename: models/Product_details.php

Line Number: 146

Backtrace:

File: /home/www/web73/html/2017-DE/application/models/Product_details.php
Line: 146
Function: _error_handler

File: /home/www/web73/html/2017-DE/application/controllers/Main.php
Line: 434
Function: get_cat_product

File: /home/www/web73/html/2017-DE/application/controllers/Main.php
Line: 262
Function: details

File: /home/www/web73/html/2017-DE/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: subcatslug

Filename: models/Product_details.php

Line Number: 146

Backtrace:

File: /home/www/web73/html/2017-DE/application/models/Product_details.php
Line: 146
Function: _error_handler

File: /home/www/web73/html/2017-DE/application/controllers/Main.php
Line: 434
Function: get_cat_product

File: /home/www/web73/html/2017-DE/application/controllers/Main.php
Line: 262
Function: details

File: /home/www/web73/html/2017-DE/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: models/Product_details.php

Line Number: 32

Backtrace:

File: /home/www/web73/html/2017-DE/application/models/Product_details.php
Line: 32
Function: _error_handler

File: /home/www/web73/html/2017-DE/application/controllers/Main.php
Line: 450
Function: get_left

File: /home/www/web73/html/2017-DE/application/controllers/Main.php
Line: 262
Function: details

File: /home/www/web73/html/2017-DE/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: models/Product_details.php

Line Number: 33

Backtrace:

File: /home/www/web73/html/2017-DE/application/models/Product_details.php
Line: 33
Function: _error_handler

File: /home/www/web73/html/2017-DE/application/controllers/Main.php
Line: 450
Function: get_left

File: /home/www/web73/html/2017-DE/application/controllers/Main.php
Line: 262
Function: details

File: /home/www/web73/html/2017-DE/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/www/web73/html/2017-DE/system/core/Exceptions.php:272)

Filename: core/Common.php

Line Number: 568

Backtrace:

File: /home/www/web73/html/2017-DE/application/models/Product_details.php
Line: 45
Function: get

File: /home/www/web73/html/2017-DE/application/controllers/Main.php
Line: 450
Function: get_left

File: /home/www/web73/html/2017-DE/application/controllers/Main.php
Line: 262
Function: details

File: /home/www/web73/html/2017-DE/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 MySQL server version for the right syntax to use near 'GROUP BY `tbl_products`.`id_product` ORDER BY `tbl_products`.`id_product`' at line 13

SELECT *, (tbl_products.quantity-SUM(tbl_invoice_product.quant)) as quant, `tbl_product_price`.`price` as `price_product`, `tbl_product_lng`.`title_lng` as `product` FROM `tbl_products` JOIN `tbl_product_price` ON `tbl_product_price`.`id_product` = `tbl_products`.`id_product` JOIN `tbl_product_img` ON `tbl_product_img`.`id_product` = `tbl_products`.`id_product` JOIN `tbl_invoice_product` ON `tbl_invoice_product`.`id_product` = `tbl_products`.`id_product` JOIN `tbl_product_lng` ON `tbl_product_lng`.`id_product` = `tbl_products`.`id_product` WHERE `tbl_product_price`.`id_prg` = 6 AND `tbl_products`.`shop_hide` =0 AND `tbl_products`.`id_pg` IS NULL AND `tbl_product_lng`.`id_lng` = 2 AND `tbl_product_img`.`pic_thumb` = 1 AND `tbl_products`.`id_product` > GROUP BY `tbl_products`.`id_product` ORDER BY `tbl_products`.`id_product`

Filename: models/Product_details.php

Line Number: 45