サイトのAlgoliaプラグインがインストールされていますが、テストを実行しようとすると、理由についての有用な情報が表示されません。エラーメッセージは次のとおりです。wp_remote_post()チェックが失敗しました。Algolia
Array
(
[headers] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[server] => nginx/1.10.0 (Ubuntu)
[date] => Wed, 28 Sep 2016 09:20:36 GMT
[content-type] => text/html; charset=UTF-8
[expires] => Wed, 11 Jan 1984 05:00:00 GMT
[cache-control] => no-cache, must-revalidate, max-age=0
[x-frame-options] => Array
(
[0] => SAMEORIGIN
[1] => DENY
)
[location] => https://www.myhost.co.uk/directory/
[strict-transport-security] => max-age=15768000; includeSubDomains; preload
[x-content-type-options] => nosniff
)
)
[body] =>
[response] => Array
(
[code] => 302
[message] => Found
)
[cookies] => Array
(
)
[filename] =>
[http_response] => WP_HTTP_Requests_Response Object
(
[response:protected] => Requests_Response Object
(
[body] =>
[raw] => HTTP/1.1 302 Found
Server: nginx/1.10.0 (Ubuntu)
Date: Wed, 28 Sep 2016 09:20:36 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: close
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
X-Frame-Options: SAMEORIGIN
Location: https://www.myhost.co.uk/directory/
Strict-Transport-Security: max-age=15768000; includeSubDomains; preload
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
[headers] => Requests_Response_Headers Object
(
[data:protected] => Array
(
[server] => Array
(
[0] => nginx/1.10.0 (Ubuntu)
)
[date] => Array
(
[0] => Wed, 28 Sep 2016 09:20:36 GMT
)
[content-type] => Array
(
[0] => text/html; charset=UTF-8
)
[expires] => Array
(
[0] => Wed, 11 Jan 1984 05:00:00 GMT
)
[cache-control] => Array
(
[0] => no-cache, must-revalidate, max-age=0
)
[x-frame-options] => Array
(
[0] => SAMEORIGIN
[1] => DENY
)
[location] => Array
(
[0] => https://www.myhost.co.uk/directory/
)
[strict-transport-security] => Array
(
[0] => max-age=15768000; includeSubDomains; preload
)
[x-content-type-options] => Array
(
[0] => nosniff
)
)
)
[status_code] => 302
[protocol_version] => 1.1
[success] =>
[redirects] => 0
[url] => https://www.myhost.co.uk/wp-admin/admin-post.php
[history] => Array
(
)
[cookies] => Requests_Cookie_Jar Object
(
[cookies:protected] => Array
(
)
)
)
[filename:protected] =>
[data] =>
[headers] =>
[status] =>
)
)
問題がどこにあるか、私はここから出て働くことができない - 302のコードはOKに見えますが、私はそれは、スクリプトの失敗の原因となっている何が起こっているのかわかりません。
ブラウザにURLを読み込んだり、郵便配達員を使ってURLを取得すると、ステータスコードは200になります。 Curlが有効になり、私のサーバーで動作しているので、問題の内容がわからない。
こんにちは、 あなたのサーバーからURLをトリガーすると、それをリダイレクトしようとします。 HTTPS + HTTPをお持ちですか? – rayrutjes
https://www.myhost.co.uk/directory/にリダイレクトしようとしていますか?それは鐘を鳴らしますか? – rayrutjes
@rayrutjes私はHTTPSとHTTPを持っていますが、HTTPはHTTPSとNginx設定レベルに直接リダイレクトします。私はAlgoliaでインデックスを作成しようとしているものの1つであるディレクトリがインストールされています。私はそれを複製しようとすることができます他のどのようなテストのか分からない! –