- Posts: 58
XML File won't load in Mappings area
- Jocelyn Garner
-
Topic Author
- Offline
- Senior Member
-
Less
More
13 years 4 months ago #1
by Jocelyn Garner
XML File won't load in Mappings area was created by Jocelyn Garner
Antonio, can you tell me what to put in the blanks below the User Profile selection? Here is what I believe should be the correct information:
Form Path: /plugins/user/profile5/profiles/profile.xml
J1.6+ Profile plugin : profile5
When I try to open the Mappings tab, I get this error:
=============================
500 - An error has occurred.
XML file did not load
Return to Control Panel
=============================
I looked through j16profiles.php and I can't tell if it's the loadFile on line 248 that's failing or the simplexml_load_File that's failing. I've attached my plugin ZIP file, in case you can see anything obvious that is wrong or missing.
I am completely blocked until this is resolved.
Thanking you in advance,
Toolie
Form Path: /plugins/user/profile5/profiles/profile.xml
J1.6+ Profile plugin : profile5
When I try to open the Mappings tab, I get this error:
=============================
500 - An error has occurred.
XML file did not load
Return to Control Panel
=============================
I looked through j16profiles.php and I can't tell if it's the loadFile on line 248 that's failing or the simplexml_load_File that's failing. I've attached my plugin ZIP file, in case you can see anything obvious that is wrong or missing.
I am completely blocked until this is resolved.
Thanking you in advance,
Toolie
Please Log in or Create an account to join the conversation.
- Jocelyn Garner
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 58
13 years 4 months ago #2
by Jocelyn Garner
Replied by Jocelyn Garner on topic Re: XML File won't load in Mappings area
OK, I have an update, Antonio.
Now I go on to mapping the fields; I need to create the Moodle fields next.
Toolie
- I took the same plugin code as above and replaced "profile5" with "profile" in all of the files.
- I then saved the original user profile plugin files and moved MY code into \plugins\user\profile folder where the default code would be.
- I took the profile5 path and profile key out of their respective text boxes on the Joomdle configuration page under Additional Data Sources, and saved the configuration.
- I then went to the Mappings tab, and my code loaded up as expected, now that it was sitting in the "default" location..
Now I go on to mapping the fields; I need to create the Moodle fields next.
Toolie
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7849
13 years 4 months ago #3
by Antonio Durán
Replied by Antonio Durán on topic Re: XML File won't load in Mappings area
Hi.
You need to put the complete route to the XML file. For example:
/var/www/j254/plugins/ldap/profile.xml
You need to put the complete route to the XML file. For example:
/var/www/j254/plugins/ldap/profile.xml
Please Log in or Create an account to join the conversation.
- Tristan Roscoe
- Offline
- New Member
-
Less
More
- Posts: 7
11 years 9 months ago #4
by Tristan Roscoe
Replied by Tristan Roscoe on topic XML File won't load in Mappings area
Just in case someone else happens to stumble across this like I did, the default would be something like:
If you created a custom user profiles plugin it would look something like this:
Code:
/var/www/html/plugins/user/profile/profiles/profile.xml
If you created a custom user profiles plugin it would look something like this:
Code:
/var/www/html/plugins/user/profile5/profiles/profile.xml
Please Log in or Create an account to join the conversation.