Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

Bug - Admin/Users->Custom fields in user profile.

0 votes

Field names does not show up.

 

 

Extra fields on user profile:

 

I migrated the database from 1.4.3.

Q2A version: 1.5
asked Dec 22, 2011 in Q2A Core by Krzysztof Kielce

1 Answer

+1 vote
 
Best answer

It seems like the qa_userfields table has empty string values for the content column on these default fields, rather than NULL as it should be. Can you confirm?

answered Dec 25, 2011 by gidgreen
selected Jan 2 by Krzysztof Kielce
Yes.

This is fragment of my dump:
INSERT INTO `qa_userfields` (`fieldid`, `title`, `content`, `position`, `flags`) VALUES
 ('1','name','','1','0'),
 ('2','location','','2','0'),
 ('3','website','','3','2'),
 ('4','about','','4','1');

- NULL values are written as "\N" in my dumper.
OK, so this explains it. I don't know how this happened, but you can fix it by running this query:

UPDATE qa_userfields SET content=NULL where content="";
Also, adding new fields is okay.