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
pbear
New
I'm not finding this mentioned, so here goes...
I've got a conflict with these extensions:
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:
This is line 504 and surrounding (n.b. of PredefinedAttributes as given in the error):
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.
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)
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.
0
This discussion has been closed.
Comments