I have installed a working phpList-Installation, a Drupal 7.2 and the latest dev-Version of the phplist module (2011-Jul-07). The database connection works. There are no profile fields to sync. Profile module is activated. When I try to sync the drupal user with phpList I get a WSoD and the error message

Fatal error: Call to undefined function profile_load_profile() in ../drupal7/sites/all/modules/phplist/phplist.module on line 1241

After looking in the profile module I found that this function does not longer exist. I think the new name is profile_user_load. When I change the function call in line 1241 of the phplist module to

profile_load_profile($user);

the fatal error is gone. The users are imported to phpList but not subscribed to any newsletter and the phpList module gives me warnings like

Warning: array_keys() [function.array-keys]: The first argument should be an array in profile_user_load() (Zeile 254 von .../drupal7/modules/profile/profile.module).

Comments

paulbeaney’s picture

Category: bug » task
Priority: Critical » Normal

Hi,

I'm afraid I haven't yet got round to converting the D7 code to use the (very different from D6) Profile module. I'll update the status of this report to reflect the fact that work is required, and also remove the critical flag as this problem doesn't actually prevent the module working - just the Profile module integration.

Regards,

- Paul

valthebald’s picture

I'd suggest core user_load() or contrib module profile2 (but the latter would be overkill if you just need attached fields)
Note that user_load() returns fully populated $account object, not basic $user