Jump to:

1161 Posts in 2632 Topics by 409 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Cannot Login after Update from 2.3.2 to 2.4.1

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 2901 Views
  • tekilla83
    Avatar
    Community Member
    20 Posts

    Cannot Login after Update from 2.3.2 to 2.4.1 Link to this post

    Hi,

    I tryed to update a very large Project from 2.3.2 to 2.4.1.

    In error.log there is:

    Warning at \sapphire\core\Cookie.php line 33: Cookie 'alc_enc' can't be set. The site started outputting was content at line 60 in C:\workspace\myproject\sapphire\core\model\DataObjectDecorator.php (http://www-lokal.myproject.de/Security/LoginForm)

    Any Ideas?

    How I updated:
    I deleted jsparty/, cms/ and sapphire/ folders and copied the new cms/ and sapphire/ folders
    then I corrected the references from jsparty/ to sapphire/thirdparty/... or cms/thirdparty/...
    then I added SWFUpload Module, because it's not part of the core anymore.

    then I did some changes like changeing CalendarDateField into DateField with setConfig('showcalendar', true)
    and SiteTree->URLSegment into SiteTree->Link()

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Cannot Login after Update from 2.3.2 to 2.4.1 Link to this post

    Warning at \sapphire\core\Cookie.php line 33: Cookie 'alc_enc' can't be set. The site started outputting was content at line 60 in C:\workspace\myproject\sapphire\core\model\DataObjectDecorator.php

    Whats on line 60 of your version of that file? it sounds like its probably throwing an error or some other header which is causing the cookie to not be set.

  • tekilla83
    Avatar
    Community Member
    20 Posts

    Re: Cannot Login after Update from 2.3.2 to 2.4.1 Link to this post

    // @deprecated 2.4 - use extraStatics() now, not extraDBFields()
          if(method_exists($extensionClass, 'extraDBFields')) {
             user_error('DataObjectDecorator::extraDBFields() is deprecated. Please use extraStatics() instead.', E_USER_NOTICE);
             $extraStaticsMethod = 'extraDBFields';
          } else {
             $extraStaticsMethod = 'extraStatics';
          }

    It's the ExtraDBFields(). I just renamed the Method were in extraStatics() and now it's fine! Thanks

  • pjssms
    Avatar
    Community Member
    49 Posts

    Re: Cannot Login after Update from 2.3.2 to 2.4.1 Link to this post

    where did you rename it ?

  • erad67
    Avatar
    Community Member
    6 Posts

    Re: Cannot Login after Update from 2.3.2 to 2.4.1 Link to this post

    Yea, I have the Q as pjssms. I'm not a programmer, so specific details would be GREATLY appreciated. Thanks.

  • erad67
    Avatar
    Community Member
    6 Posts
  • marand
    Avatar
    Community Member
    9 Posts

    Re: Cannot Login after Update from 2.3.2 to 2.4.1 Link to this post

    Hello!
    I have a similar problem - can't login: "Cookie 'alc_enc' can't be set. The site started outputting was content at line 1 in .../mysite/_config.php"
    All files are checked (1 row in the _config.php is <?php), no blank rows or spaces in the beginning or end of files.

    When try to open /admin/ link, I see the redirect message "Redirecting to /Security/login?BackURL=%2Fadmin%2F... (output started on .../mysite/_config.php, line 1)". Again config.php...

    SS 2.4.2, bug is active on the live-server only.

    Can you direct me, how to repair this?

    Thank you and sorry for poor English

  • FullWebService
    Avatar
    Community Member
    38 Posts

    Re: Cannot Login after Update from 2.3.2 to 2.4.1 Link to this post

    Is there a solution for Marand's problem?

    For some reason I get this error with 2.4.5. Only with one hosting company. Maybe a php setting or something?

    2901 Views
Page: 1 2
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.