×
Other Plugins
Joomla User Fields Profile Plugin seems to not work properly
7 years 6 months ago
Topic Author
Joomla User Fields Profile Plugin seems to not work properly #1
Hi to all, trying to use the plugin I have appeared some errors.
I found 2 syntax errors in joomdlejoomlafieldsprofile.php:
at line 190 there's an instantiation of the class "JObjet"a "c" is missing, and at line 195, in this query:there is a "_" in addition.
Correcting the code does not display other errors, but the plugin seems to not work properly: mapped fields do not match.
If I create a user in Joomla, the user is created also in Moodle but the custom fields are not saved.
If I modify the data in Moodle all custom fields are modified blank in Joomla and, in Moodle, all custom fields are saved with the same value (seems it is the value of the first mapped field in Joomdle)
I found 2 syntax errors in joomdlejoomlafieldsprofile.php:
at line 190 there's an instantiation of the class "JObjet"
$f = new JObjet ();
$db->insertObject ('#___fields_values', $f);
Correcting the code does not display other errors, but the plugin seems to not work properly: mapped fields do not match.
If I create a user in Joomla, the user is created also in Moodle but the custom fields are not saved.
If I modify the data in Moodle all custom fields are modified blank in Joomla and, in Moodle, all custom fields are saved with the same value (seems it is the value of the first mapped field in Joomdle)
Please Log in or Create an account to join the conversation.
7 years 6 months ago
Joomla User Fields Profile Plugin seems to not work properly #2
Hi. Thanks for the bug report.
Aside from the errors you point out, plugin was not working in general for me either. This is weird, as I am sure most things worked when we released it before summer (the errors you mention are in a section only executed when creating new users from Moodle)
I think some change in Joomla has made it to stop working, but I cannot be sure now. I will try to investigate it more, if only out of curiosity.
Anyway, I just uploaded an updated package that seems to be working fine for me. Please test it and let us know:
www.joomdle.com/download/category/27-plu...-user-fields-profile k
Aside from the errors you point out, plugin was not working in general for me either. This is weird, as I am sure most things worked when we released it before summer (the errors you mention are in a section only executed when creating new users from Moodle)
I think some change in Joomla has made it to stop working, but I cannot be sure now. I will try to investigate it more, if only out of curiosity.
Anyway, I just uploaded an updated package that seems to be working fine for me. Please test it and let us know:
www.joomdle.com/download/category/27-plu...-user-fields-profile k
Please Log in or Create an account to join the conversation.
7 years 6 months ago
Topic Author
Joomla User Fields Profile Plugin seems to not work properly #3
Thank you Antonio, now it's almost ok, but the calendar type fields are not working.
I think because the value is saved in the table #__field_values in a date format, like: YYYY-MM-DD HH:MM:SS and not like a Unix timestamp, but Moodle needs Unix timestamp for calendar fields.
I tried to map a text field of Joomla to a calendar field of Moodle and it is saved a Unix timestamp and the date is showing correctly. From Moodle to Joomla, instead, the calendar fields work properly.
Another issue: if I put custom fields into a field group, they are not mapped and they are saved blank
I think because the value is saved in the table #__field_values in a date format, like: YYYY-MM-DD HH:MM:SS and not like a Unix timestamp, but Moodle needs Unix timestamp for calendar fields.
I tried to map a text field of Joomla to a calendar field of Moodle and it is saved a Unix timestamp and the date is showing correctly. From Moodle to Joomla, instead, the calendar fields work properly.
Another issue: if I put custom fields into a field group, they are not mapped and they are saved blank
Please Log in or Create an account to join the conversation.
7 years 6 months ago
Joomla User Fields Profile Plugin seems to not work properly #4
Thanks for the feedback, I will work on it more and get back to you as soon as possible.
Please Log in or Create an account to join the conversation.
7 years 6 months ago
Joomla User Fields Profile Plugin seems to not work properly #5
Hi again.
I tested, and sync is working fine for me even if fields are in groups, not sure what's the problem you are having.
As for calendar fields: you are right. I just uploaded and updated version of the plugin adding support for them:
www.joomdle.com/download/category/27-plu...-user-fields-profile k
I tested, and sync is working fine for me even if fields are in groups, not sure what's the problem you are having.
As for calendar fields: you are right. I just uploaded and updated version of the plugin adding support for them:
www.joomdle.com/download/category/27-plu...-user-fields-profile k
Please Log in or Create an account to join the conversation.
7 years 6 months ago
Topic Author
Joomla User Fields Profile Plugin seems to not work properly #6
Hi thank you so much, now everything works, also the fields in groups. Probably it was a my mistake, i forgot to set permissions group.
I had only a little issue (another time with the calendar): there was a difference of an hour between Joomla and Moodle. I verified all timezone settings (Joomla, Moodle, php.ini and server too) and they was all correct but they still having an hour of difference. I verified the data stored in the database and they are correctly in UTC time.
Only the calendar field mapped have the problem, the other hours in Moodle are showing correctly.
I workaround the problem adding an hour in joomdlejoomlafieldsprofile.php when the date it is converted to timestamp.
For me it's ok because I use the calendar field only for the birth date and I don't need the time, but the difference of an hour between 0:00 and 23:00 was showing wrong all birth dates.
Now for me it works, thank you very much
I had only a little issue (another time with the calendar): there was a difference of an hour between Joomla and Moodle. I verified all timezone settings (Joomla, Moodle, php.ini and server too) and they was all correct but they still having an hour of difference. I verified the data stored in the database and they are correctly in UTC time.
Only the calendar field mapped have the problem, the other hours in Moodle are showing correctly.
I workaround the problem adding an hour in joomdlejoomlafieldsprofile.php when the date it is converted to timestamp.
For me it's ok because I use the calendar field only for the birth date and I don't need the time, but the difference of an hour between 0:00 and 23:00 was showing wrong all birth dates.
Now for me it works, thank you very much
Please Log in or Create an account to join the conversation.
7 years 6 months ago
Joomla User Fields Profile Plugin seems to not work properly #7
Great, thanks for the feedback. I will look into the time difference issue soon, to see if I can find anything, and get back to you.
Please Log in or Create an account to join the conversation.
7 years 6 months ago
Joomla User Fields Profile Plugin seems to not work properly #8
I have tried but failed to replicate the problem.
Before, I was using fields with only date, and no time shown, and date was synced correctly.
I created a new field with time shown in Joomla and Moodle, and date and time are synced correctly.
Maybe it is something specific to your server configuration, or maybe it works in my setup becuase a specific configuration...
Anyway, only thing we can do is wait and see if someone else reports the same issue, and in that case we can try investigating it further.
Before, I was using fields with only date, and no time shown, and date was synced correctly.
I created a new field with time shown in Joomla and Moodle, and date and time are synced correctly.
Maybe it is something specific to your server configuration, or maybe it works in my setup becuase a specific configuration...

Anyway, only thing we can do is wait and see if someone else reports the same issue, and in that case we can try investigating it further.
Please Log in or Create an account to join the conversation.