I'm getting the following errors after being redirected back to my site after registering with Twitter:
Notice: Undefined property: stdClass::$timezone in drupal_get_user_timezone() (line 2231 of /path/to/includes/bootstrap.inc).
Notice: Undefined property: stdClass::$timezone in system_user_login() (line 1999 of /path/to/modules/system/system.module).
In the past I've found that this is because the $user object isn't being fully loaded, and the following needs to be called one more time:
$user = user_load($user->uid);
Not sure if that will help this time, but I'm adding it just in case. Unfortunately, I don't even know where to look in this module.
I should add, the user is properly created.
Comments
Comment #1
kladrian commentedHi,
I had the same problem and I've created this patch.
Thanks for your suggestion!
Comment #2
Vesh commentedHi guys, Im getting the following error when i randomly log into my website www.stagebanned.com
Notice: Undefined property: stdClass::$timezone in system_user_login() (line 1998 of /home/....../public_html/modules/system/system.module).
It doesnt happen always, but often enough to annoy a person. I understand that this issue is regarding the twitter sign in module... but my issue does involve the system module.
Ive searched online and all issues are either too old or involve another module entirely. I would be grateful for any assistance with the above if you have found a solution yourself or if you could point me in the right direction.
Thank you
Veshalen
Comment #3
Snoopy1234 commentedHi Vesh ,
Drupal is one of the most annoying platforms ever.Its not difficult ...its just not worth the effort. You have a better chance with wordpress. There is a developer side to Wordpress if you want to go that route. Dont waste your time here, Delete drupal .... join Wordpress you will be glad you did it.
Comment #4
jaypanIf you are having that much troubles with Drupal, then I agree. You will find Wordpress much easier to work with. I'll stick with Drupal myself though, it's my platform of choice by a long shot.
Comment #5
damienmckennaComment #7
damienmckennaI've reworked the code a little bit.
Comment #9
damienmckennaLoad the password_inc file, per the 7.x-5.x branch.
Comment #10
damienmckennaPorted to 7.x-5.x.
Comment #12
damienmckennaBackported to 6.x-5.x.
Comment #13
damienmckennaCommitted.