A PHP Error was encountered

Severity: Warning

Message: foreach() argument must be of type array|object, null given

Filename: models/Produse_model.php

Line Number: 295

Backtrace:

File: /home/flori/public_html/application/models/Produse_model.php
Line: 295
Function: _error_handler

File: /home/flori/public_html/application/controllers/Produs.php
Line: 10
Function: get_by_id

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: models/Produse_model.php

Line Number: 337

Backtrace:

File: /home/flori/public_html/application/models/Produse_model.php
Line: 337
Function: _error_handler

File: /home/flori/public_html/application/models/Produse_model.php
Line: 298
Function: set_related_data

File: /home/flori/public_html/application/controllers/Produs.php
Line: 10
Function: get_by_id

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "id"

Filename: models/Produse_model.php

Line Number: 338

Backtrace:

File: /home/flori/public_html/application/models/Produse_model.php
Line: 338
Function: _error_handler

File: /home/flori/public_html/application/models/Produse_model.php
Line: 298
Function: set_related_data

File: /home/flori/public_html/application/controllers/Produs.php
Line: 10
Function: get_by_id

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "id"

Filename: models/Produse_model.php

Line Number: 339

Backtrace:

File: /home/flori/public_html/application/models/Produse_model.php
Line: 339
Function: _error_handler

File: /home/flori/public_html/application/models/Produse_model.php
Line: 298
Function: set_related_data

File: /home/flori/public_html/application/controllers/Produs.php
Line: 10
Function: get_by_id

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "id"

Filename: models/Produse_model.php

Line Number: 343

Backtrace:

File: /home/flori/public_html/application/models/Produse_model.php
Line: 343
Function: _error_handler

File: /home/flori/public_html/application/models/Produse_model.php
Line: 298
Function: set_related_data

File: /home/flori/public_html/application/controllers/Produs.php
Line: 10
Function: get_by_id

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "category_id"

Filename: models/Produse_model.php

Line Number: 343

Backtrace:

File: /home/flori/public_html/application/models/Produse_model.php
Line: 343
Function: _error_handler

File: /home/flori/public_html/application/models/Produse_model.php
Line: 298
Function: set_related_data

File: /home/flori/public_html/application/controllers/Produs.php
Line: 10
Function: get_by_id

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "price"

Filename: models/Produse_model.php

Line Number: 343

Backtrace:

File: /home/flori/public_html/application/models/Produse_model.php
Line: 343
Function: _error_handler

File: /home/flori/public_html/application/models/Produse_model.php
Line: 298
Function: set_related_data

File: /home/flori/public_html/application/controllers/Produs.php
Line: 10
Function: get_by_id

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "id"

Filename: models/Produse_model.php

Line Number: 344

Backtrace:

File: /home/flori/public_html/application/models/Produse_model.php
Line: 344
Function: _error_handler

File: /home/flori/public_html/application/models/Produse_model.php
Line: 298
Function: set_related_data

File: /home/flori/public_html/application/controllers/Produs.php
Line: 10
Function: get_by_id

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "category_id"

Filename: models/Produse_model.php

Line Number: 346

Backtrace:

File: /home/flori/public_html/application/models/Produse_model.php
Line: 346
Function: _error_handler

File: /home/flori/public_html/application/models/Produse_model.php
Line: 298
Function: set_related_data

File: /home/flori/public_html/application/controllers/Produs.php
Line: 10
Function: get_by_id

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "brand_id"

Filename: models/Produse_model.php

Line Number: 356

Backtrace:

File: /home/flori/public_html/application/models/Produse_model.php
Line: 356
Function: _error_handler

File: /home/flori/public_html/application/models/Produse_model.php
Line: 298
Function: set_related_data

File: /home/flori/public_html/application/controllers/Produs.php
Line: 10
Function: get_by_id

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "id"

Filename: controllers/Produs.php

Line Number: 11

Backtrace:

File: /home/flori/public_html/application/controllers/Produs.php
Line: 11
Function: _error_handler

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Input.php

Line Number: 450

Backtrace:

File: /home/flori/public_html/application/models/Produse_model.php
Line: 526
Function: set_cookie

File: /home/flori/public_html/application/controllers/Produs.php
Line: 11
Function: set_produse_vizualizate

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "title"

Filename: controllers/Produs.php

Line Number: 24

Backtrace:

File: /home/flori/public_html/application/controllers/Produs.php
Line: 24
Function: _error_handler

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "cod"

Filename: controllers/Produs.php

Line Number: 24

Backtrace:

File: /home/flori/public_html/application/controllers/Produs.php
Line: 24
Function: _error_handler

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "category_id"

Filename: controllers/Produs.php

Line Number: 26

Backtrace:

File: /home/flori/public_html/application/controllers/Produs.php
Line: 26
Function: _error_handler

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "title"

Filename: controllers/Produs.php

Line Number: 27

Backtrace:

File: /home/flori/public_html/application/controllers/Produs.php
Line: 27
Function: _error_handler

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: controllers/Produs.php

Line Number: 27

Backtrace:

File: /home/flori/public_html/application/controllers/Produs.php
Line: 27
Function: _error_handler

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Undefined array key "category_id"

Filename: shop/produs.php

Line Number: 18

Backtrace:

File: /home/flori/public_html/application/views/shop/produs.php
Line: 18
Function: _error_handler

File: /home/flori/public_html/application/controllers/Produs.php
Line: 30
Function: view

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 571

Backtrace:

File: /home/flori/public_html/application/models/Produse_model.php
Line: 161
Function: query

File: /home/flori/public_html/application/views/shop/produs.php
Line: 18
Function: get_by_category

File: /home/flori/public_html/application/controllers/Produs.php
Line: 30
Function: view

File: /home/flori/public_html/index.php
Line: 292
Function: require_once

Database Error

Eroare a bazei de date

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 ') ORDER BY products.id asc' at line 2

SELECT * FROM products WHERE active='1' AND category_id IN () ORDER BY products.id asc

Filename: models/Produse_model.php

Line Number: 161