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.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

Cannot Login after Update from 2.3.2 to 2.4.1


Go to End
Reply


12 Posts   3254 Views

Avatar
tekilla83

Community Member, 20 Posts

4 September 2010 at 2:13am

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()

Avatar
Willr

Forum Moderator, 5513 Posts

4 September 2010 at 8:07pm

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.

Avatar
tekilla83

Community Member, 20 Posts

7 September 2010 at 12:47am

// @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

Avatar
pjssms

Community Member, 49 Posts

17 September 2010 at 8:22pm

where did you rename it ?

Avatar
erad67

Community Member, 6 Posts

20 October 2010 at 3:17am

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

Avatar
erad67

Community Member, 6 Posts

20 October 2010 at 3:23am

Nevermind, the solutions is on another thread.

http://www.silverstripe.org/all-other-modules/show/283120#post283120

Avatar
marand

Community Member, 9 Posts

16 June 2011 at 6:45pm

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 :)

Avatar
FullWebService

Community Member, 38 Posts

14 September 2011 at 8:21am

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?

Go to Top