Ticket #1484870 (closed Bugs: fixed)

Opened 10 months ago

Last modified 9 months ago

login problem for a new created email

Reported by: spyjo Owned by: till
Priority: 5 Milestone: 0.2-alpha
Component: Core functionality Version: 0.1-stable
Severity: major Keywords: php4, fatal error, self, new email, virtusertable
Cc:

Description

I'm using Roundcube last stable with Postfix with "virtusertable" and Courier Imap on Debian. In the roundcube config, I have this line to be able to login with emails instead of unix users:

$rcmail_config['virtuser_file'] = '/etc/postfix/virtusertable';

It's working well for all "old" emails, but I have just created a new one, and when I try to login, there is a blank page. I put the debug_level to 4 to display the error, here it is:

Fatal error: Undefined class name 'self' in /var/www/web50/web/program/include/rcube_user.inc on line 364

I have tested to login with the linux user or the virtual email (both are working normally for other emails), the error is the same.

Change History

Changed 10 months ago by alec

go to rcube_user.inc and change line 364 from: $user_email = self::user2email($user); to: $user_email = $this->user2email($user);

Changed 10 months ago by till

  • owner set to till
  • status changed from new to assigned

@spyjo Are you running PHP4?

If so, sorry for the inconvenience.

Just for the record, better do this:

$user_email = rcube_user::user2email($user);

We aim for a static call. So $this is by no means appropriate.

Changed 10 months ago by till

  • keywords php4, added

Changed 10 months ago by spyjo

yes I'm running PHP4 actually.

I made the change, it's working now, thanks !

Changed 9 months ago by alec

  • status changed from assigned to closed
  • resolution set to fixed

Fixed. We're php5 only now.

Note: See TracTickets for help on using tickets.