Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Time contains invalid values error

7 years 7 months ago
Licenses:
JomSocial Active Socialize Expired

Potential members of my community can not join, because of an error.

Reproduce:
1. Click "Bliv Medlem" at the top of front page
2. Fill out fields
3. Select profile type (gospelkor)
4. Fill out fields
5. Click "Bliv medlem/opret kor"
6. This produces an error that states that the time field contains invalid values.

can you help me troubleshooting, please?

7 years 7 months ago
Licenses:

HI, Mads.

Thank you for contacting us,
Yes, I was able to replicate it.
I assign developer to investigate it further.
He'll contact you ASAP.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
The following user(s) said Thank You: Mads Andersen
7 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

Seems this is valid bug.. thank you for reporting.

thank you!

7 years 7 months ago
Licenses:
JomSocial Active Socialize Expired

Is there a patch fix, or some code I can change for it to work for now?

7 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

not yet, but I will let you know once it available..

7 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

To fix this issue
- open this file components/com_community/controllers/profile.php, add this code

} else if ($field['type'] == 'time') {
                                $glue = ':';
after this code
} else if ($field['type'] == 'checkbox') {
                                  $glue = ',';

- open this file components/com_community/libraries/fields/time.php, add this code
$required = ($field->required == 1) ? ' data-required="true"' : '';
after this code
public function getFieldHTML( $field , $required )
     {

on same file, find find this code
$html .= '<select name="timefield field' . $field->id . '[]" style="display: inline-block; width: auto;" >';
replace to
$html .= '<select name="field' . $field->id . '[]" style="display: inline-block; width: auto;" '.$required.' >';

thank you!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW