Jump to:

2084 Posts in 1005 Topics by 453 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » ecommerce 0.6 breaks ss 2.3.6 site

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, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1569 Views
  • Webdoc
    Avatar
    Community Member
    332 Posts

    ecommerce 0.6 breaks ss 2.3.6 site Link to this post

    [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

  • TotalNet
    Avatar
    Community Member
    181 Posts

    Re: ecommerce 0.6 breaks ss 2.3.6 site Link to this post

    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

  • javelin
    Avatar
    Community Member
    12 Posts

    Re: ecommerce 0.6 breaks ss 2.3.6 site Link to this post

    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?

    1569 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.