Test failed Response from server does not contain valid XML.
I want changes properties for click the option " Pre - Posts are approved before they appear" then showing error message
Error(s)
Test failed Response from server does not contain valid XML.
Support Staff 2 Posted by nigel on 06 Feb, 2012 10:24 AM
This is because the Webhook test is not being passed. The webhook is used to keep local comments synced with our server copy when you moderate using an external application. We are looking into why this failed but in the meantime I've manually changed your moderation type to 'Pre - Posts are approved before they appear'.
Thanks
Nigel
3 Posted by peter on 06 Feb, 2012 10:28 AM
Hi.
This looks like it could be caused by a missing extension in php. Do you have access to your server's error logs at all?
4 Posted by susheelmeel on 06 Feb, 2012 11:00 AM
Hi Peter,
Attached please find the log file. right now i am using site on
seowebsitedesigncompany.com domain i will transfer all backup on another
domain.
Thanks & Regards,
Susheel
5 Posted by susheelmeel on 06 Feb, 2012 11:16 AM
Hi Peter,
Attached please find the error log file.
Thanks & Regards,
Susheel
6 Posted by peter on 06 Feb, 2012 11:40 AM
Thanks. are you able to edit xmlrpc.php on your server?
If so, could you try changing line 25 from:
$xml_obj = new SimpleXMLElement($HTTP_RAW_POST_DATA);to:
$xml_obj = new SimpleXMLElement(file_get_contents('php://input'));and let me know if that fixes the problem.
7 Posted by susheelmeel on 06 Feb, 2012 12:47 PM
Hi Peter,
Thanks for your support, Currently i am created account
jayantchaudhary.orgwebsite but i am host that backup on my test domain
server. can i upload
after 2 days on the created domain www.jayantchaudhary.org website.
Thanks & Regards,
Susheel Meel
8 Posted by peter on 06 Feb, 2012 02:11 PM
If you replace xmlrpc.php with the attached file it should work properly.
9 Posted by susheelmeel on 08 Feb, 2012 05:48 PM
Hi Peter,
As per your mail i have upload your attached file and i have also changed
http://www.jayantchaudhary.org/components/com_discussit/xmlrpc.php in Webhook
Endpoint field instead of
http://www.seowebsitedesigncompany.com/components/com_discussit/xmlrpc.php
again showing same problem " Test failed Response from server does not
contain valid XML " please resolved my problem.
thanks
10 Posted by peter on 09 Feb, 2012 09:26 AM
Hi.
Having a look at the directory http://www.seowebsitedesigncompany.com/components/com_discussit/ the xmlrpc file is incorrectly named it should be just "xmlrpc.php" not "xmlrpc.php_test".
I'm not sure why this has happened.
11 Posted by susheelmeel on 10 Feb, 2012 08:07 PM
Hi Peter i have upload backup on another domain and i am using also crate
another account still it not working plz check webhook end point is
http://jayantchaudhary.org/components/com_discussit/xmlrpc.php
and showing error message is " Test failed Response from server does not
contain valid XML. "
12 Posted by peter on 13 Feb, 2012 03:50 PM
Hi, I've finally tracked down the problem and it is fixed in the archive here
Sorry it took so long.
13 Posted by susheelmeel on 13 Feb, 2012 04:21 PM
Please change the location of " Webhook Endpoint " file is "
http://www.jayantchaudhary.org/components/com_discussit/xmlrpc.php" instead
of "
http://www.seowebsitedesigncompany.com/components/com_discussit/xmlrpc.php"
14 Posted by peter on 13 Feb, 2012 04:45 PM
Ok. Endpoint changed.
15 Posted by susheelmeel on 13 Feb, 2012 04:48 PM
Ok but while click on the webtesthook showing error message " Test failed
Response from server does not contain valid XML. " please check
16 Posted by peter on 13 Feb, 2012 04:49 PM
Have you uninstalled and reinstalled using the new archive?
17 Posted by susheelmeel on 13 Feb, 2012 04:57 PM
Thanx i have done uninstalled then reinstalled again showing error message
" *Error(s)*
- Test failed Response from server does not contain valid XML."
18 Posted by peter on 13 Feb, 2012 05:00 PM
Ok. One thing to try - go to the discussit component in joomla admin then add "&action=resetapi" to the end of the url in the address bar and press enter.
You will then need to put your API key in again and this should set the webhook properly.
19 Posted by susheelmeel on 13 Feb, 2012 05:06 PM
I have done but again coming same problem Test failed Response from server
does not contain valid XML.
20 Posted by peter on 13 Feb, 2012 05:10 PM
does your xmlrpc.php have this on line 28?:
$xml = file_get_contents('php://input');if not, add it before this line:
$xml_obj = new SimpleXMLElement($xml);That should fix it.
21 Posted by susheelmeel on 13 Feb, 2012 05:15 PM
I have checked and see the below already code in this file :
$db = JFactory::getDBO();
$query = "SELECT val FROM `#__di_settings` WHERE name = 'widgetID' ";
$db->setQuery($query);
$widgetID = $db->loadResult();
$xml = file_get_contents('php://input');
$xml_obj = new SimpleXMLElement($xml);
$method = '';
$method = $xml_obj->methodName[0];
22 Posted by peter on 17 Feb, 2012 10:33 AM
I'm stuck for an answer. The only thing I can think of is turning off error reporting in PHP and seing if that fixes the problem.
23 Posted by susheelmeel on 18 Feb, 2013 11:52 AM
LinkedIn
------------
I'd like to add you to my professional network on LinkedIn.
- Susheel
Susheel Meel
Team Lead at Vayam Technologies Ltd.
Jaipur Area, India
Confirm that you know Susheel Meel:
https://www.linkedin.com/e/yjix6o-hdbkekr7-6/isd/11135627600/6ZD98u-H/?hs=false&tok=0WkyvjRBc8aRE1
--
You are receiving Invitation to Connect emails. Click to unsubscribe:
http://www.linkedin.com/e/yjix6o-hdbkekr7-6/n0TExFp6CAcB_zCCZEgSs_jUn5RQB_i2GPwSQQ2pCeNgDQjq6Uf9RQvZh50QD_BZ6U9P4HVLnUXN_HBwUW_eKMNr/goo/tender%2Bdca244bb4b4165c991b9cbbcbbeed95a3647f195d%40tenderapp%2Ecom/20061/I3685440184_1/?hs=false&tok=00F7FPrQ88aRE1
(c) 2012 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, USA.