- Posts: 14
Social Extensions Integration
[Solved] XML-RPC Error (404) when registering with CB Login
- fmbright
-
Topic Author
- Offline
- New Member
-
Less
More
10 years 4 months ago - 10 years 4 months ago #1
by fmbright
[Solved] XML-RPC Error (404) when registering with CB Login was created by fmbright
Hi,
I am using Community Builder Login to register a user. I receive the error "XML-RPC Error (404): Unknown error" after saving the registration. The System Checks says the status for Joomla to Moddle and Moodle to Joomla are both red. But the Joomdle Web Service status is green. From other posts, this should be ok.
What would I need to check or correct?
Thanks
Frank
www.fmbright.com/cpeadvisor -- Joomla
www.fmbright.com/cpeadvisor/moodleadmin -- Moodle
Using
Joomla 3.4.5
Joomdle 1.0.4
Moodle 3.0
Community Builder 2.0.12
I am using Community Builder Login to register a user. I receive the error "XML-RPC Error (404): Unknown error" after saving the registration. The System Checks says the status for Joomla to Moddle and Moodle to Joomla are both red. But the Joomdle Web Service status is green. From other posts, this should be ok.
What would I need to check or correct?
Thanks
Frank
www.fmbright.com/cpeadvisor -- Joomla
www.fmbright.com/cpeadvisor/moodleadmin -- Moodle
Using
Joomla 3.4.5
Joomdle 1.0.4
Moodle 3.0
Community Builder 2.0.12
Last edit: 10 years 4 months ago by Antonio Durán.
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
10 years 4 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic XML-RPC Error (404) when registering with CB Login
Hi Frank.
Please enable debugging inMoodle and try to log in, to receive more info about the error.
Please enable debugging inMoodle and try to log in, to receive more info about the error.
The topic has been locked.
- fmbright
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 14
10 years 4 months ago #3
by fmbright
Replied by fmbright on topic XML-RPC Error (404) when registering with CB Login
Hi Antonio,
This is the error that I get....
XML-RPC Error (16251974): Invalid user | DEBUG INFO: SELECT id FROM {user} WHERE id IS NULL AND deleted = ? [array ( 0 => 0, )] | ERRORCODE: invaliduser
Frank
This is the error that I get....
XML-RPC Error (16251974): Invalid user | DEBUG INFO: SELECT id FROM {user} WHERE id IS NULL AND deleted = ? [array ( 0 => 0, )] | ERRORCODE: invaliduser
Frank
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
10 years 4 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic XML-RPC Error (404) when registering with CB Login
Hi Frank.
Please try something: edit file moodle/auth/joomdle/auth.php
Find create_joomdle_user() function.
Look for a block that starts with: (line 3328 in my file)
/* Get user pic */
Find this code:
$context = context_user::instance($user->id);
Just before it, add:
$user = get_complete_user_data('username', $username);
And then try again.
Please try something: edit file moodle/auth/joomdle/auth.php
Find create_joomdle_user() function.
Look for a block that starts with: (line 3328 in my file)
/* Get user pic */
Find this code:
$context = context_user::instance($user->id);
Just before it, add:
$user = get_complete_user_data('username', $username);
And then try again.
The topic has been locked.
- fmbright
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 14
10 years 4 months ago #5
by fmbright
Replied by fmbright on topic XML-RPC Error (404) when registering with CB Login
Antonio,
That seems to work fine. I created a new account. And registered it. But when I login with the new account, I get this error...
The temporary file isn't there for CURL!
Can you help with this?
Frank
That seems to work fine. I created a new account. And registered it. But when I login with the new account, I get this error...
The temporary file isn't there for CURL!
Can you help with this?
Frank
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
10 years 4 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic XML-RPC Error (404) when registering with CB Login
Try disabling redirect-less SSO.
The topic has been locked.
- fmbright
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 14
10 years 4 months ago #7
by fmbright
Replied by fmbright on topic XML-RPC Error (404) when registering with CB Login
Sorry, now am getting a 500 - Internal Server error!
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
10 years 4 months ago #8
by Antonio Durán
Replied by Antonio Durán on topic XML-RPC Error (404) when registering with CB Login
This can be related to permissions in joomdle files in Moodle, as Moodle installer is giving too much permissions when installing.
Check that your files in moodle/auth/joomdle has permissions 644, and not 666.
Also, folders should be 755 and not 777.
A recent Moodle change has made this happen, and I have yet to study if there is a way to fix it.
Check that your files in moodle/auth/joomdle has permissions 644, and not 666.
Also, folders should be 755 and not 777.
A recent Moodle change has made this happen, and I have yet to study if there is a way to fix it.
The topic has been locked.
- fmbright
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 14
10 years 4 months ago #9
by fmbright
Replied by fmbright on topic XML-RPC Error (404) when registering with CB Login
Made the changes. Its working great. Thank you!
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
10 years 4 months ago #10
by Antonio Durán
Replied by Antonio Durán on topic XML-RPC Error (404) when registering with CB Login
Great, thanks for the feedback.
The topic has been locked.