[eluser]ginteno[/eluser]
Hi can somebody tell me what's wrong with my cart insert code..
adding item to cart works perfect using localhost xampp but when i uploaded it online on my hosting.
the adding item cart part is showing errors..
Here is the Code
Code:
public function insert_cart(){
$data = array(
'id' => 11,
'qty' => 1,
'price' => 500,
'name' =>' new_product',
'options' => 888
);
print_r($data);
$this->cart->insert($data);
}
ERROR MESSAGE
A PHP Error was encountered
Severity: Warning
Message: implode() [function.implode]: Invalid arguments passed
Filename: libraries/Cart.php
Line Number: 220
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home2/wusignco/public_html/nunez/system/core/Exceptions.php:185)
Filename: libraries/Session.php
Line Number: 675
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home2/wusignco/public_html/nunez/system/core/Exceptions.php:185)
Filename: helpers/url_helper.php
Line Number: 542
ERROR LOG FILE
[08-Apr-2014 17:26:50] PHP Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home2/wusignco/public_html/nunez/application/controllers/cart.php on line 41
[08-Apr-2014 17:26:52] PHP Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home2/wusignco/public_html/nunez/application/controllers/cart.php on line 41
[08-Apr-2014 18:07:44] PHP Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home2/wusignco/public_html/nunez/application/controllers/cart.php on line 122
[08-Apr-2014 18:07:44] PHP Parse error: syntax error, unexpected $end in /home2/wusignco/public_html/nunez/application/controllers/cart.php on line 122
[08-Apr-2014 18:09:01] PHP Parse error: syntax error, unexpected $end in /home2/wusignco/public_html/nunez/application/controllers/cart.php on line 65
[08-Apr-2014 18:09:23] PHP Parse error: syntax error, unexpected $end in /home2/wusignco/public_html/nunez/application/controllers/cart.php on line 171
[08-Apr-2014 18:11:36] PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home2/wusignco/public_html/nunez/application/controllers/cart.php on line 40
[08-Apr-2014 18:11:38] PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home2/wusignco/public_html/nunez/application/controllers/cart.php on line 40
Any help would be appreciated.. Thanks..