How To / General

When user updates profile in Moodle - HTTPD Apache crashes

More
7 years 8 months ago #1 by MB
When user updates profile in Moodle - HTTP Apache crashes. After clicking "update profile" in Moodle the page just keeps processing and never completes until the Apache crashes and needs to be restarted.

On the Joomdle system check I get the following error: Moodle to Joomla HTTP connectivity Moodle cannot connect to Joomla

1. But the login, logout, and new account creation process is working correctly - just crashes on Moodle update profile.
2. Everything looks setup correctly for moodle to connect to joomla.

Any help would be much appreciated.

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

More
7 years 8 months ago #2 by Antonio Durán
> On the Joomdle system check I get the following error: Moodle to Joomla HTTP connectivity Moodle cannot connect to Joomla

But last item in system check is green?

> When user updates profile in Moodle - HTTP Apache crashes

Are you able to look at error log to try to find the cause?
I guess you have enabled sync users to Joomla in Joomdle config in Moodle. Try disabling it and test.
Do you have any additional data source set up in Joomdle config in Joomla? Try disabling it and test.

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

More
7 years 8 months ago #3 by MB
Yes, The last item in system check is green.

I disabled "sync users to Joomla in Joomdle config in Moodle" and it stopped crashing. I then enabled it and tried editing each field and submitting on by one until I found the field crashing the server > It is the timezone field causing the crash. After I restart apache the timezone dropdown shows ( invalid timezone"" ).

So to clarify, when "sync users to Joomla in Joomdle config in Moodle" is disabled, the select timezone works correctly in Moodle's edit profile. But, when "sync users to Joomla in Joomdle config in Moodle" is activated, the server will crash and upon restart the timezone dropdown shows - invalid timezone""

Any ideas how to correct this?

Thanks again for your help.

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

More
7 years 8 months ago #4 by Antonio Durán
> tried editing each field and submitting on by one

I am not sure what you mean here: do you just leave timezone as it is, and then it does not fail? Only when you select a new value?

Also: do you have any additional data source set in Joomdle config in Joomla?

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

More
7 years 8 months ago #5 by MB
> I am not sure what you mean here: do you just leave timezone as it is, and then it does not fail? Only when you select a new value?
do you just leave timezone as it is, and then it does not fail? Yes, that is correct.
Only when you select a new value? Yes, only when you select a new value does it fail.

> Also: do you have any additional data source set in Joomdle config in Joomla?
No, there are no additional data sources set.

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

More
7 years 8 months ago #6 by Antonio Durán
Please try adding this code in file: administrator/components/com_joomdle/helpers/mappings.php
Function: save_user_info ()
After:
Code:
if ($use_utf8_decode) $user->name = utf8_decode ($user_info['firstname']) . " " . utf8_decode ($user_info['lastname']); else $user->name = $user_info['firstname'] . " " . $user_info['lastname'];
Add:
Code:
if (($user_info['timezone'] == 99) || ($user_info['timezone'] == 'UTC')) $user_info['timezone'] = ''; $user->setParam( 'timezone', $user_info['timezone'] );

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