[solved] 3 gender fields?!

More
9 years 9 months ago - 9 years 9 months ago #23836 by dennisth19
hi,

if i enable the gender field i get 3 options?!
Attachments:
Last edit: 9 years 9 months ago by nordmograph.

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #23837 by nordmograph
Replied by nordmograph on topic 3 gender fields?!
Hi Dennis,

The query only selects distinct values, so there might be at least one entry in your database where mannlich has a space added somewhere.

You can try running this query in phpmyadmin to see:
Code:
SELECT DISTINCT(value) AS raw FROM #__community_fields_values WHERE field_id=2 AND value !='' GROUP BY value ORDER BY value DESC

Make sure you replace #_ with your db prefix and 2 with your gender field ID (2 is the default FIELD_GENDER)

Let me know the result.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #23838 by dennisth19
Replied by dennisth19 on topic 3 gender fields?!
on jomsocial i have only 2 fields and everything works fine. i dont know much about sql. please can you look into it? i sent you cpanel login a few weeks ago

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #23839 by nordmograph
Replied by nordmograph on topic 3 gender fields?!
No, not everything woks fine. Stats are mistaken also.


Some of your users have:
male as value wereas others have COM_COMMUNITY_MALE

Geommunity3 take it as 2 different values.
Your mistaken values probably come from older Jomsocial (or language files) versions values.
Go to:
administrator/index.php?option=com_community&view=users

and save once again the Gender field for every users.
This will solve the issue.

Let me know

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.
The following user(s) said Thank You: dennisth19

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #23844 by dennisth19
Replied by dennisth19 on topic 3 gender fields?!
You were right. Now it works:-)

Please Log in or Create an account to join the conversation.

Time to create page: 0.324 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.