Opened 4 years ago

Closed 4 years ago

#1485863 closed Bugs (fixed)

0.3 beta first time login error

Reported by: adurelli Owned by:
Priority: 2 Milestone: 0.3-stable
Component: PHP backend Version: git-master
Severity: major Keywords:
Cc: suporte@…, dave@…

Description

Hi!

I´m using version 0.3 beta. When a user try to login for the first time an error is raised:

PHP Fatal error: Call to a member function exec_hook() on a non-object in program/include/rcube_user.php on line 403

If you refresh the page the error is gone and everything works. But some plugins (for example new_user_identity) does not work due to the first error.

Attachments (1)

ticket1485863.diff (602 bytes) - added by drowe 4 years ago.
Default the user_name to the e-mail address for new identities, if the user isn't found in the address book.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 4 years ago by alec

  • Component changed from Core functionality to PHP backend
  • Resolution set to fixed
  • Status changed from new to closed

Probably fixed in [0772a7de].

comment:2 Changed 4 years ago by netbit

  • Cc suporte@… added
  • Priority changed from 5 to 2
  • Resolution fixed deleted
  • Status changed from closed to reopened
  • Version changed from devel-vnext to svn-trunk

Still don't working on trunk 2521.

r2508 fix only the "PHP Fatal error". When a new user login, RC don't create it on "identities" table, just create it on "users" table.

Changed 4 years ago by drowe

Default the user_name to the e-mail address for new identities, if the user isn't found in the address book.

comment:3 Changed 4 years ago by drowe

  • Cc dave@… added

The problem here is that the user might not be found in the address book, and the $user_name variable is passed around (empty), then once the new identity is about to be created, it fails due to the lack of user_name. So, if we come back from the address book check, and the user_name is empty, just set it to the e-mail address, and continue on.

comment:4 Changed 4 years ago by drowe

  • Cc dave@… removed

comment:5 Changed 4 years ago by drowe

  • Cc dave@… added

comment:6 Changed 4 years ago by alec

  • Resolution set to fixed
  • Status changed from reopened to closed

Fixed in [adc0bf01]. Empty name is allowed.

Note: See TracTickets for help on using tickets.