Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

PredefinedAttributes/Account Pictures conflict

pbearpbear New
edited November 2006 in Vanilla 1.0 Help
I'm not finding this mentioned, so here goes...

I've got a conflict with these extensions:
  • Account Pictures 1.0a from 2006-06-04
  • PredefinedAttributes 0.3.3 from 2006-07-03
  • (in Vanilla 1.0.1)
If I go as a new user who has filled out PredefinedAttributes in the registration process and click on the Account page, all is well. My information is there. If I select the Personal Information under Account Options in the Panel, likewise.

But if I select Account Pictures and upload a new image (icon or picture), it wipes my PredefinedAttributes out! Reloading the Account page shows they're gone, and loading the Personal Information page shows those items set to their defaults.

When I click "Save" in Account Pictures, I get the following in my php_error.log:
PHP Notice: Undefined property: User in /Applications/MAMP/htdocs/forum2/extensions/PredefinedAttributes/default.php on line 504
This is line 504 and surrounding (n.b. of PredefinedAttributes as given in the error):
/*//////////////////////////////// // @name: PredefinedAttributes_AddFromPersonalInformation // @description: called by delegation and 'redirects' to function in class // @param: Object AccoutForm // @return: - */ function PredefinedAttributes_AddFromPersonalInformation($UserManager) { $pa = new PredefinedAttributes($UserManager->Context, $UserManager->User); $pa->AddFromPersonalInformation($UserManager); } $Context->AddToDelegate('UserManager', 'PreIdentityUpdate', 'PredefinedAttributes_AddFromPersonalInformation');
I took a peek in the database and the PredefinedAttributes column is empty for this account. It is properly filled for other accounts where I did not revisit the Account Pictures. It does not affect "Attributes" column (i.e. the Vanilla default Label-Value pairs).

After some more testing, if I resave my Personal Information, the same error is logged via the "Save" button on that page. The error does not occur at all if PredefinedAttributes is off, though Account Pictures enabled apparently adds a little data clearing to the mix. :(

Comments

  • Has this issue been resolved? I'm using Account Pictures now, but would like to add Predefined Attributes also.
  • Not that I know of. I've just left Account Pictures out of the picture. Having your predefined attributes get zapped for no apparent reason is not fun.
  • I just experienced this as well. Hmm.
This discussion has been closed.