A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'id_trans' of non-object

Filename: controllers/Cart.php

Line Number: 46

Backtrace:

File: /home/faviansh/public_html/application/controllers/Cart.php
Line: 46
Function: _error_handler

File: /home/faviansh/public_html/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/faviansh/public_html/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/faviansh/public_html/application/models/Cart_model.php
Line: 188
Function: insert

File: /home/faviansh/public_html/application/controllers/Cart.php
Line: 106
Function: insert

File: /home/faviansh/public_html/index.php
Line: 315
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1048

Column 'user_id' cannot be null

INSERT INTO `transaksi` (`user_id`) VALUES (NULL)

Filename: models/Cart_model.php

Line Number: 188