AnimeSuki Forums

Register Forum Rules FAQ Members List Social Groups Search Today's Posts Mark Forums Read

Go Back   AnimeSuki Forum > Support > Forum & Site Feedback


Thread Tools
Old 2011-04-13, 01:15   Link #1
Definition of Slacker
Join Date: Apr 2007
Location: Norway
Age: 31
Exclamation Bug - Beta site

Got this on as soon as I signed in with my Forum username:

ErrorException: Undefined property AnimeSukiSession::$favorites in /home/animesuki/ on line 68
#0 /home/animesuki/ Session->__get('favorites')
#1 /home/animesuki/ AnimeSukiSession->__get('favorites')
#2 /home/animesuki/ AnimeSukiController->Menu(1)
#3 /home/animesuki/ IndexController->ActionDefault()
#4 /home/animesuki/ Controller->Run()
#5 {main}
Since I didn't see a forum for feedback on the beta site, I'm posting this here.
Signature says "Hello!"
LostLogic is offline   Reply With Quote
Old 2011-04-13, 04:54   Link #2
Join Date: Jan 2001
Location: Netherlands
Age: 36
Thank you very much for the bug report, as this error would have only showed up upon first login (on the beta site) for users, which would then obviously be stumped at this error.

A work-around would have been to simply delete the cookies for and try to login again - on the 2nd attempt a login would have worked.

But of course I've now fixed the problem, so it shouldn't happen again.

Technical explanation: upon first login the session class did not initialize certain custom fields from the user table (the "favorites" field among them). Combine that with the nasty behavior of isset() to also return false when a value is set but null (which was what my database object was returning for the uninitialized fields) and you get this error. Due to the session fields being cached in memcache, the error perpetuated between pages.

The solution was to reload all values from the user table after saving any new values (ie: last login time) after login, thereby properly initializing all values.
GHDpro is offline   Reply With Quote

beta,, bug, website

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 15:54.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2015, vBulletin Solutions, Inc.
We use Silk.