PHP version cause of problem?
- John Feagans
- Topic Author
- Offline
- Junior Member
-
Less
More
14 years 1 month ago #1
by John Feagans
PHP version cause of problem? was created by John Feagans
I have an install of Joomdle with Moodle 1.94 and Joomla 1.6 with PHP 5.3 that works together perfectly on my local server.
When I move everything to a hosted server, the system health has two red flags. First is e_deprecated and second is Moodle not configured with a trusted XML RPC host.
e_deprecated cannot be changed as the service is running PHP version 5.2.17 and the constant e_deprecated is not available.
I used the Moodle XML-RPC hosts test an address to verify 127.0.0.1 and my website IP and included them in the list of trusted hosts.
Joomdle says error 7201 when I attempt to enable the Joomdle available courses module.
Is the PHP version the problem and is there a workaround if the hosting service cannot change?
Thank you.
When I move everything to a hosted server, the system health has two red flags. First is e_deprecated and second is Moodle not configured with a trusted XML RPC host.
e_deprecated cannot be changed as the service is running PHP version 5.2.17 and the constant e_deprecated is not available.
I used the Moodle XML-RPC hosts test an address to verify 127.0.0.1 and my website IP and included them in the list of trusted hosts.
Joomdle says error 7201 when I attempt to enable the Joomdle available courses module.
Is the PHP version the problem and is there a workaround if the hosting service cannot change?
Thank you.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
14 years 1 month ago #2
by Antonio Durán
Replied by Antonio Durán on topic Re: PHP version cause of problem?
No, PHP version is not the problem.
Most probably, the server is using a different IP address to communicate with itself.
Try adding 0.0.0.0/0 to the trusted host list to see if that helps (this is not secure, it's just to check).
Most probably, the server is using a different IP address to communicate with itself.
Try adding 0.0.0.0/0 to the trusted host list to see if that helps (this is not secure, it's just to check).
Please Log in or Create an account to join the conversation.
- John Feagans
- Topic Author
- Offline
- Junior Member
-
14 years 1 month ago #3
by John Feagans
Replied by John Feagans on topic Re: PHP version cause of problem?
Antonio,
By setting trusted host 0.0.0.0/0 in Moodle we made system check forget about the "not configured with a trusted host", but now it complains "Joomla URL seems to be misconfigured."
Other than the red flags on e_deprecated and Joomla URL, Moodle courses are displayed in Joomla, you can enrol in them, and launch them.
To prevent the security issue, what is the next step I should take in solving the trusted XML-RPC host issue?
By setting trusted host 0.0.0.0/0 in Moodle we made system check forget about the "not configured with a trusted host", but now it complains "Joomla URL seems to be misconfigured."
Other than the red flags on e_deprecated and Joomla URL, Moodle courses are displayed in Joomla, you can enrol in them, and launch them.
To prevent the security issue, what is the next step I should take in solving the trusted XML-RPC host issue?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
14 years 1 month ago #4
by Antonio Durán
Replied by Antonio Durán on topic Re: PHP version cause of problem?
That message could be related to E_DEPRECATED.
Open joomlasite.com/xmlrpc/index.php
You should get an xml error. If you see any php errors, there is a problem.
As for xml-rpc: you should find out the real IP being used. You could contact your hosting provider to ask.
Open joomlasite.com/xmlrpc/index.php
You should get an xml error. If you see any php errors, there is a problem.
As for xml-rpc: you should find out the real IP being used. You could contact your hosting provider to ask.
Please Log in or Create an account to join the conversation.
- John Feagans
- Topic Author
- Offline
- Junior Member
-
14 years 1 month ago #5
by John Feagans
Replied by John Feagans on topic Re: PHP version cause of problem?
Antonio,
Yes, verified there is only an XML error: For the benefit of others on this forum, here is what it looks like:
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultCode</name>
<value>
<int>105</int>
</value>
</member>
<member>
<name>faultString</name>
<value>
<string>
XML error: Invalid document end at line 1, column 1
</string>
</value>
</member>
</struct>
</value>
</fault>
</methodResponse>
After going over the heads of the technical support at one hosting provider, I installed Joomla-Joomdle-Moodle on a different site/provider. This one has PHP 5.3.3 and support for php.ini so the e-deprecated issue disappeared, but they also have the problem with what real IP is being used. I have contacted their support hoping for an answer.
Would you recommend inserting some code in Moodle to find out which host is trying to communicate? (assuming the other hosting provider can't tell me).
Yes, verified there is only an XML error: For the benefit of others on this forum, here is what it looks like:
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultCode</name>
<value>
<int>105</int>
</value>
</member>
<member>
<name>faultString</name>
<value>
<string>
XML error: Invalid document end at line 1, column 1
</string>
</value>
</member>
</struct>
</value>
</fault>
</methodResponse>
After going over the heads of the technical support at one hosting provider, I installed Joomla-Joomdle-Moodle on a different site/provider. This one has PHP 5.3.3 and support for php.ini so the e-deprecated issue disappeared, but they also have the problem with what real IP is being used. I have contacted their support hoping for an answer.
Would you recommend inserting some code in Moodle to find out which host is trying to communicate? (assuming the other hosting provider can't tell me).
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
14 years 1 month ago #6
by Chris
Replied by Chris on topic Re: PHP version cause of problem?
In an earlier post it mentioned
Do this in moodle, then go back to Joomdle system health check. It will report your IP address in there
Once you have that place this IP address back into moodle replace the 0.0.0.0/0
Try adding 0.0.0.0/0 to the trusted host list to see if that helps (this is not secure, it's just to check).
Do this in moodle, then go back to Joomdle system health check. It will report your IP address in there
Once you have that place this IP address back into moodle replace the 0.0.0.0/0
Please Log in or Create an account to join the conversation.
- John Feagans
- Topic Author
- Offline
- Junior Member
-
14 years 1 month ago #7
by John Feagans
Replied by John Feagans on topic Re: PHP version cause of problem?
No, unfortunately no IP address is reported in Joomla 1.5 under system health check. One of my hosting providers did give me an internal address which I will try shortly. Other remains a mystery--even to the hosting provider. :^)
Please Log in or Create an account to join the conversation.