Good morning.
Does prod check has requirements regarding the xmlrpc calls?
I succeeded to connection this great module to all my websites but one and I see no reason why not.
- htaccess protection? I put xmlrpc on the whitelist and it does not work even when htaccess is disabled,
- wrong key? I copy paste the one from a working site and still not working,
- wrong xmlrpc activation? I activate it several times, flush any possible cache.
So I am quite lost here
As the error is "Failed to retrieve settings form from remote site, please verify the given URL and try again!", it comes from
function _prod_monitor_retrieve_functions($url, $api_key, $msg = TRUE).,
Any idea? Thanks.
Julien.
Comments
Comment #1
JulienThomas CreditAttribution: JulienThomas commentedFor more information, I updated _prod_monitor_retrieve_functions($url, $api_key, $msg = TRUE) with
And I get
And if I compare xmlrpc.php results, I see the following differences on the HTTP headers:
- working sites, port 80 (nginx) or 8080: content-length:60 -- php 5.3.3
- not working site: port 80: content-length:0, 8080: content-length:43 -- php 5.4
Can any of this be the reason?
Import is tested both with http://url/ and http://url:8080/
Comment #2
aklump CreditAttribution: aklump commentedI too have having trouble, and with just ONE website as well.
As far as I've been able to debug, the string of XML that is returned is getting prematurely truncated in the function
drupal_http_request()
so that I'm able to see before line 989 is executedlist($response, $result->data) = preg_split("/\r\n\r\n|\n\n|\r\r/", $response, 2);
that the value of $response is truncated (see below). So the XML is malformed and the request fails.What's interesting is that if I use a standalone REST tester, the response comes back just fine from the server; so the server (prod_check) is serving up the XML fine. This suggests that there might be a bug in
drupal_http_request
, potentially. But I'm stumped at this point.Comment #3
JulienThomas CreditAttribution: JulienThomas commentedI just review the new version of xmlrpc.inc and still issue (after Drupal 3.71).
I edited xmlrpc.inc
and changed function
at line
to
It seems that the server added extra line between the xml header tag and the content.
Does this fix yours too, aklump?
Comment #4
malc0mn CreditAttribution: malc0mn commentedCould it maybe be that this one particular site that is causing trouble, has something like this in the code somewhere:
or maybe just a closing ?> php call at the end of a file followed by an empty line or something like that?
Comment #5
marcoka CreditAttribution: marcoka commentedthis is an interesting topic as i have the same problem getting \\n added infront of the tag and that makes the drupal core fail getting the root tag.
Comment #6
pawel.traczynski CreditAttribution: pawel.traczynski as a volunteer commentedFor me the solution was to change one of my module files that was being loaded when drupal was bootstraping. THe issue was the file was in UTF with BOM. I have changed it to "UTF without BOM" and it solved the problem.
Comment #7
Anybody