I installed Imagecache profile tonight and got the following fatal error.

Cannot redeclare phptemplate_user_picture() (previously declared in /var/www/vhosts/vlfit.com/httpdocs/sites/all/modules/imagecache_profiles/imagecache_profiles.module:19) in /var/www/vhosts/vlfit.com/httpdocs/themes/vitalifer/template.php on line 167

I had to open the system table and turn in back off.

Comments

neopoet’s picture

Think there's an incompatibility with usernode.

Do you have code like the following in your template.php?

function phptemplate_user_picture(&$account) {
  if (variable_get('user_pictures', 0)) {
    if ($account->picture && file_exists($account->picture)) {
      $picture = file_create_url($account->picture);
    }
    else if (variable_get('user_picture_default', '')) {
      $picture = variable_get('user_picture_default', '');
    }

    if (isset($picture)) {
      $alt = t("@user's picture", array('@user' => $account->name ? $account->name : variable_get('anonymous', 'An$
      $picture = theme('...
v1nce’s picture

In your template.php file try renaming the function phptemplate_user_picture to YOURTHEMENAME_user_picture.

v1nce’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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