Welcome, Guest
Other Plugins

TOPIC: Joomla User Fields Profile Plugin seems to not work properly

Joomla User Fields Profile Plugin seems to not work properly 1 year 2 months ago #1

  • noiseasy
  • noiseasy's Avatar
  • Offline
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"
$f = new JObjet ();
a "c" is missing, and at line 195, in this query:
$db->insertObject ('#___fields_values', $f);
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)
The administrator has disabled public write access.

Joomla User Fields Profile Plugin seems to not work properly 1 year 2 months ago #2

  • Antonio Durán
  • Antonio Durán's Avatar
  • Offline
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
The administrator has disabled public write access.

Joomla User Fields Profile Plugin seems to not work properly 1 year 2 months ago #3

  • noiseasy
  • noiseasy's Avatar
  • Offline
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
The administrator has disabled public write access.

Joomla User Fields Profile Plugin seems to not work properly 1 year 2 months ago #4

  • Antonio Durán
  • Antonio Durán's Avatar
  • Offline
Thanks for the feedback, I will work on it more and get back to you as soon as possible.
The administrator has disabled public write access.

Joomla User Fields Profile Plugin seems to not work properly 1 year 2 months ago #5

  • Antonio Durán
  • Antonio Durán's Avatar
  • Offline
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
The administrator has disabled public write access.

Joomla User Fields Profile Plugin seems to not work properly 1 year 2 months ago #6

  • noiseasy
  • noiseasy's Avatar
  • Offline
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
The administrator has disabled public write access.

Joomla User Fields Profile Plugin seems to not work properly 1 year 2 months ago #7

  • Antonio Durán
  • Antonio Durán's Avatar
  • Offline
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.
The administrator has disabled public write access.

Joomla User Fields Profile Plugin seems to not work properly 1 year 1 month ago #8

  • Antonio Durán
  • Antonio Durán's Avatar
  • Offline
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.
The administrator has disabled public write access.