Problem: 'me' aliases replaces the arg(1) (user id) with the word 'me'. This breaks the Affiliate 2 control panel because of it's use of arg(1) instead of $user->uid.

Solution:
Change line 959 of uc_affiliate2.module from
$account = user_load(array('uid' => arg(1)));
to
$account = user_load(array('uid' => $user->uid));

Fixed.

Comments

bojanz’s picture

Status: Needs review » Fixed

However, your solution breaks the ability for admin or someone with similar permissions to view other people's dashboards.

The correct way to do this is to modify _menu() to provide the $user object to all functions that require it (such as the dashboard) and then use $user->uid.

Fixed in CVS.

Anonymous’s picture

Thanks for pointing that out, glad to hear it is fixed in CVS

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.