- Posts: 7909
Joomdle 1.0 Installation
Joomla URL seems to be misconfigured in Joomdle auth plugin
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
8 years 4 months ago #11
by Antonio Durán
Replied by Antonio Durán on topic Joomla URL seems to be misconfigured in Joomdle auth plugin
I meant Protostar.
Please Log in or Create an account to join the conversation.
- Miloud Eloumri
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 14
8 years 4 months ago #12
by Miloud Eloumri
Replied by Miloud Eloumri on topic Joomla URL seems to be misconfigured in Joomdle auth plugin
I switched to Protostar template, but it did not solve the problem. Are there any other files/templates/plugins I should check and debug. Many thanks.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
8 years 4 months ago #13
by Antonio Durán
Replied by Antonio Durán on topic Joomla URL seems to be misconfigured in Joomdle auth plugin
Then it could be a plugin... or some custom code so may be running somehow.
I would start disabling all non-core system plugins.
Also, if you have shell access, you can use grep to try to find for a head tag in some file. If you cannot find it there, you could also search in the database.
I would start disabling all non-core system plugins.
Also, if you have shell access, you can use grep to try to find for a head tag in some file. If you cannot find it there, you could also search in the database.
Please Log in or Create an account to join the conversation.
- Miloud Eloumri
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 14
8 years 4 months ago #14
by Miloud Eloumri
Replied by Miloud Eloumri on topic Joomla URL seems to be misconfigured in Joomdle auth plugin
Thanks Antonio,
I searched for the <head/> tag:
// note: apps directory includes moodle and joomla directories
grep --color -n -i -r '<head/>' /opt/lampstack-5.6.32-1/apps/
// The above grep command returns one result:
/opt/lampstack-5.6.32-1/apps/moodle/moodledata/temp/joomdle_system_check.xml:2:<head/><methodResponse>
so, the <head/> tag only exists in the generated joomdle_system_check.xml file. I searched moodle and joomla database, but the <head/> tag is not there too.
I guess the <head/> tag gets generated dynamically by joomdle and saved in the joomdle_system_check.xml file.
I searched for the <head/> tag:
// note: apps directory includes moodle and joomla directories
grep --color -n -i -r '<head/>' /opt/lampstack-5.6.32-1/apps/
// The above grep command returns one result:
/opt/lampstack-5.6.32-1/apps/moodle/moodledata/temp/joomdle_system_check.xml:2:<head/><methodResponse>
so, the <head/> tag only exists in the generated joomdle_system_check.xml file. I searched moodle and joomla database, but the <head/> tag is not there too.
I guess the <head/> tag gets generated dynamically by joomdle and saved in the joomdle_system_check.xml file.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
8 years 4 months ago #15
by Antonio Durán
Replied by Antonio Durán on topic Joomla URL seems to be misconfigured in Joomdle auth plugin
Then the head tag must be in the database, which was always more likely.
Search for the head tag in your database, especially extensions table.
Search for the head tag in your database, especially extensions table.
Please Log in or Create an account to join the conversation.
- Miloud Eloumri
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 14
8 years 4 months ago #16
by Miloud Eloumri
Replied by Miloud Eloumri on topic Joomla URL seems to be misconfigured in Joomdle auth plugin
Hi Antonio, I searched joomla and moodle database more than once to be sure, but the <head/> is not in the database. Somehow the <head/> tag is dynamically generated. I upgraded Joomdle in both joomla and moodle from 1.1.3 to 1.1.4, but the problem is still there. I also noted something looking not right in the file: /opt/lampstack-5.6.32-1/apps/joomla/htdocs/log/joomdle_system_check.xml. This file looks like this, but just pasted it here in multi-lines for clarity:
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member><name>joomdle_auth</name><value><int>1</int></value></member>
<member><name>mnet_auth</name><value><int>1</int></value></member>
<member><name>joomdle_configured</name><value><int>1</int></value></member>
<member><name>test_data</name><value><string/></value></member>
<member><name>release</name><value><string>1.1.4</string></value></member>
</struct>
</value>
</param>
</params>
</methodResponse>
You can see that in : (<member><name>test_data</name><value><string/></value></member>) there is a closing <string/> tag with no matching opening tag and data. This is not because of Joomdle upgrade I did as the file is exactly the same in both Joomdle versions (I have both entire backups). After upgrading the file : /opt/lampstack-5.6.32-1/apps/moodle/moodledata/temp/joomdle_system_check.xml is still as it was with the closing head tag :
<?xml version="1.0" encoding="UTF-8"?>
<head/><methodResponse>
<params>
<param>
<value>
<string>It works</string>
</value>
</param>
</params>
</methodResponse>
Thank you
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member><name>joomdle_auth</name><value><int>1</int></value></member>
<member><name>mnet_auth</name><value><int>1</int></value></member>
<member><name>joomdle_configured</name><value><int>1</int></value></member>
<member><name>test_data</name><value><string/></value></member>
<member><name>release</name><value><string>1.1.4</string></value></member>
</struct>
</value>
</param>
</params>
</methodResponse>
You can see that in : (<member><name>test_data</name><value><string/></value></member>) there is a closing <string/> tag with no matching opening tag and data. This is not because of Joomdle upgrade I did as the file is exactly the same in both Joomdle versions (I have both entire backups). After upgrading the file : /opt/lampstack-5.6.32-1/apps/moodle/moodledata/temp/joomdle_system_check.xml is still as it was with the closing head tag :
<?xml version="1.0" encoding="UTF-8"?>
<head/><methodResponse>
<params>
<param>
<value>
<string>It works</string>
</value>
</param>
</params>
</methodResponse>
Thank you
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
8 years 4 months ago #17
by Antonio Durán
Replied by Antonio Durán on topic Joomla URL seems to be misconfigured in Joomdle auth plugin
Hi.
I am sorry, but I cannot really tell you much more. Head tag is coming either from files or database. There is no other way for it to appear.
If changing template does not help, start disabling plugins until you have disabled all non-core plugins.
I am sorry, but I cannot really tell you much more. Head tag is coming either from files or database. There is no other way for it to appear.
If changing template does not help, start disabling plugins until you have disabled all non-core plugins.
Please Log in or Create an account to join the conversation.
- Miloud Eloumri
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 14
8 years 3 months ago #18
by Miloud Eloumri
Replied by Miloud Eloumri on topic Joomla URL seems to be misconfigured in Joomdle auth plugin
Hi Antonio,
I have been trying to fix the problem, but unfortunately no solution worked for me so far.
If you can help with some other related info, it would be appreciated. The things I am asking for are the Links behaviour items options in Joomdle.
As shown on this link:
www.joomdle.com/wiki/Installing_Joomdle_in_Joomla
in Links behaviour there are: Default Itemid, Joomdle Itemid, Shop Itemid and Course Itemid. Are values for these option mandatory or letting them blank is Okay? Are there default values to put in these options? The values for Course Itemid, for example, should match some values in Moodle ? Courses settings and Configuration such categories or groups, names and/or IDs in Moodle should match that in Joomla ?
Thanks a lot.
I have been trying to fix the problem, but unfortunately no solution worked for me so far.
If you can help with some other related info, it would be appreciated. The things I am asking for are the Links behaviour items options in Joomdle.
As shown on this link:
www.joomdle.com/wiki/Installing_Joomdle_in_Joomla
in Links behaviour there are: Default Itemid, Joomdle Itemid, Shop Itemid and Course Itemid. Are values for these option mandatory or letting them blank is Okay? Are there default values to put in these options? The values for Course Itemid, for example, should match some values in Moodle ? Courses settings and Configuration such categories or groups, names and/or IDs in Moodle should match that in Joomla ?
Thanks a lot.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
8 years 3 months ago #19
by Antonio Durán
Replied by Antonio Durán on topic Joomla URL seems to be misconfigured in Joomdle auth plugin
Hi.
I cannot really tell you anything else, sorry. It's just a matter of finding the code responsible of showing the wrong tag. If you change template and disable all non-core plugins, you should be able to find it.
If not, you could even install a new testing Joomla site with only Joomdle first, and connect it to Moodle. Once you see it working, start adding the components and plugins you have in the real installaiton until you find the one causing the problem.
> Are values for these option mandatory or letting them blank is Okay?
Blank is ok.
Here you can find more info:
www.joomdle.com/wiki/Installing_Joomdle_...omla#Links_behaviour
It is just a way to use your item ids in Joomdle internal calls, so you can show modules, etc.
I cannot really tell you anything else, sorry. It's just a matter of finding the code responsible of showing the wrong tag. If you change template and disable all non-core plugins, you should be able to find it.
If not, you could even install a new testing Joomla site with only Joomdle first, and connect it to Moodle. Once you see it working, start adding the components and plugins you have in the real installaiton until you find the one causing the problem.
> Are values for these option mandatory or letting them blank is Okay?
Blank is ok.
Here you can find more info:
www.joomdle.com/wiki/Installing_Joomdle_...omla#Links_behaviour
It is just a way to use your item ids in Joomdle internal calls, so you can show modules, etc.
Please Log in or Create an account to join the conversation.
- Miloud Eloumri
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 14
8 years 3 months ago #20
by Miloud Eloumri
Replied by Miloud Eloumri on topic Joomla URL seems to be misconfigured in Joomdle auth plugin
Thank you very much. Will try a new installation.
Please Log in or Create an account to join the conversation.