Running on MAMP, all my local URLs are like this: http://localhost:8888/distribution-drupal/slave/admin/settings/retriever
I was banging my head over why nothing was working until I tried looking at the value of $domain that's used to make the hash in content_retriever_xmlrpc():
$domain = $_SERVER['SERVER_NAME'];
That gets me 'localhost' only. Meanwhile, services module expects 'localhost:8888'.
Not sure how best to fix this. Any thoughts?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 663604.content_distribution.domain-server-port.patch | 926 bytes | joachim |
Comments
Comment #1
joachim commentedThis works on my localhost; shouldn't affect live sites.
Comment #2
joachim commentedComment #3
greg.harveyPatch looks good to me. I'll remember that for other services apps too. Never had that problem, but will do for sure one day. Good catch! ;-)
Comment #4
joachim commentedOk. Committed to 6--1.