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.
UserFields
judgej
✭
UserFields
0
Comments
-- Jason
Can you also confirm that all three tables were created:
UserField
UserFieldDef
UserFieldPerms
There is a MySQL dump in the docs folder to compare against your schema.
I'm using both MySQL versions 4.1.22 and 5.0.58
-- Jason
When I click on "View user fields" all I get is the following message:
Warning: Invalid argument supplied for foreach() in C:\xampplite\htdocs\vanilla\extensions\UserFields\account.php on line 160
Unfortunately I have no idea what could be wrong here?
Thanks in advance for your help
Babs
-- Jason
Edit: The fix is done, and will be included in the next version.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''READ' THEN 1 WHEN 'WRITE' THEN 2 WHEN 'ADMIN' THEN 3 ELSE 0 END AS PermCodeLev' at line 1
I've been through the older versions of Vanilla and cannot see any fixed bugs in that area. I don't know if anyone else here is having this problem, but I would love to know.
The only possibility I can think of, is that the install of one of the tables did not work on your version of MySQL (which I would need to fix).
-- Jason
TIA
Dan
On to your error, it looks like a simple typo. I'll prepare a new release soon, but if you change like 113 from this:
if (!empty($this->UserField)) $this->UserFieldID = $UserFieldDef->UserFieldID;
to this:
if (!empty($this->UserField)) $this->UserFieldID = $UserField->UserFieldID;
does the error go away?
-- Jason