Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

ecommerce 0.6 breaks ss 2.3.6 site


Go to End


3 Posts   2447 Views

Avatar
Webdoc

Community Member, 349 Posts

1 March 2010 at 1:48pm

[Warning] Cookie 'alc_enc' can't be set. The site started outputting was content at line 1 in /home/apriaee/public_html/motoguzzi/ecommerce/lang/et_EE.php
POST /Security/LoginForm
Line 21 in /home/apriaee/public_html/motoguzzi/sapphire/core/Cookie.php

Source
12 * @param name The variable name
13 * @param value The variable value. May be an array or object if you wish.
14 * @param expiryDays The expiry time, in days. Defaults to 90.
15 */
16 static function set($name, $value, $expiryDays = 90) {
17 if(!headers_sent($file, $line)) {
18 $expiry = $expiryDays > 0 ? time()+(86400*$expiryDays) : 0;
19 setcookie($name, $value, $expiry, Director::baseURL());
20 } else {
21 if(self::$report_errors) user_error("Cookie '$name' can't be set. The site started outputting was content at line $line in $file", E_USER_WARNING);
22 }
23 $_COOKIE[$name] = $value;
24 }
25
26 /**
27 * Get a cookie variable
Trace
•Cookie 'alc_enc' can't be set. The site started outputting was content at line 1 in /home/apriaee/public_html/motoguzzi/ecommerce/lang/et_EE.php
Line 21 of Cookie.php
•Cookie::set(alc_enc,)
Line 221 of Member.php
•Member->logIn()
Line 200 of MemberLoginForm.php
•MemberLoginForm->performLogin(Array)
Line 118 of MemberLoginForm.php
•MemberLoginForm->dologin(Array,MemberLoginForm,HTTPRequest)
Line 246 of Form.php
•Form->httpSubmission(HTTPRequest)
Line 129 of RequestHandler.php
•RequestHandler->handleRequest(HTTPRequest)
Line 143 of RequestHandler.php
•RequestHandler->handleRequest(HTTPRequest)
Line 119 of Controller.php
•Controller->handleRequest(HTTPRequest)
Line 280 of Director.php
•Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
•Director::direct(/Security/LoginForm)
Line 118 of main.php

Avatar
TotalNet

Community Member, 181 Posts

4 March 2010 at 12:45pm

Edited: 04/03/2010 12:45pm

I've noticed this, didn't credit it to ecommerce though.

If you clear you path cookies (alc_enc in particular) the error will go away, it will reappear again though if you set the "remember me" when you log in to the CMS.

0.6 works fine on v2.3.4 so I'm more inclined to say that SS2.3.6 breaks ecommerce.

I'm having a few issues with SS v2.3.6 at the mo so thinking of sticking with SS2.3.4 until I can figure out what's going on.

Cheers,

Rich

Avatar
javelin

Community Member, 12 Posts

23 April 2010 at 6:01am

Strange this, I'm getting the same all of a sudden.

[Warning] Cookie 'alc_enc' can't be set. The site started outputting was content at line 1 in...

Using 2.3.6 and don't have E-commerce. The cookie alc_enc does not exist (I removed it) and the error pops up anyway.

Any solution?