Error Connecting to Wordfence Central
-
When attempting to connect to Wordfence Central I get the following error:
HTTP 500 received from Wordfence Central: {"errors":[{"status":500,"title":"The server encountered an error processing your request.","detail":null}]}This happens on the “Passing public key to Wordfence Central” step.
After a bit more diagnosing, I found the part of the plugin where the error happens:
In the file: /wp-content/plugins/wordfence/lib/wordfenceClass.php
This request:$request = new wfCentralAPIRequest('/site/' . wfConfig::get('wordfenceCentralSiteID')...Returns the following:
[09-Nov-2021 21:51:37 UTC] array ( 'headers' => Requests_Utility_CaseInsensitiveDictionary::__set_state(array( 'data' => array ( 'content-type' => 'application/json', 'date' => 'Tue, 09 Nov 2021 21:51:37 GMT', 'server' => 'nginx', 'cache-control' => 'no-cache, private', 'set-cookie' => 'wordfence_central_api_session=aaaaa; expires=Tue, 09-Nov-2021 23:51:37 GMT; Max-Age=7200; path=/; httponly', 'strict-transport-security' => 'max-age=31536000; includeSubDomains', 'x-cache' => 'Error from cloudfront', 'via' => '1.1 8d0bf2975485a7f0e4b8d82ddd378293.cloudfront.net (CloudFront)', 'x-amz-cf-pop' => 'IAD50-C2', 'x-amz-cf-id' => 'aaaaa==', ), )), 'body' => '{"errors":[{"status":500,"title":"The server encountered an error processing your request.","detail":null}]}', 'response' => array ( 'code' => 500, 'message' => 'Internal Server Error', ), 'cookies' => array ( 0 => WP_Http_Cookie::__set_state(array( 'name' => 'wordfence_central_api_session', 'value' => 'aaaaa', 'expires' => 1636501897, 'path' => '/', 'domain' => 'www.wordfence.com', 'host_only' => true, )), ), 'filename' => NULL, 'http_response' => WP_HTTP_Requests_Response::__set_state(array( 'response' => Requests_Response::__set_state(array( 'body' => '{"errors":[{"status":500,"title":"The server encountered an error processing your request.","detail":null}]}', 'raw' => 'HTTP/1.1 500 Internal Server Error Content-Type: application/json Transfer-Encoding: chunked Connection: close Date: Tue, 09 Nov 2021 21:51:37 GMT Server: nginx Cache-Control: no-cache, private Set-Cookie: wordfence_central_api_session=aaaaa; expires=Tue, 09-Nov-2021 23:51:37 GMT; Max-Age=7200; path=/; httponly Strict-Transport-Security: max-age=31536000; includeSubDomains X-Cache: Error from cloudfront Via: 1.1 8d0bf2975485a7f0e4b8d82ddd378293.cloudfront.net (CloudFront) X-Amz-Cf-Pop: IAD50-C2 X-Amz-Cf-Id: aaaaa== {"errors":[{"status":500,"title":"The server encountered an error processing your request.","detail":null}]}', 'headers' => Requests_Response_Headers::__set_state(array( 'data' => array ( 'content-type' => array ( 0 => 'application/json', ), 'date' => array ( 0 => 'Tue, 09 Nov 2021 21:51:37 GMT', ), 'server' => array ( 0 => 'nginx', ), 'cache-control' => array ( 0 => 'no-cache, private', ), 'set-cookie' => array ( 0 => 'wordfence_central_api_session=aaaaa; expires=Tue, 09-Nov-2021 23:51:37 GMT; Max-Age=7200; path=/; httponly', ), 'strict-transport-security' => array ( 0 => 'max-age=31536000; includeSubDomains', ), 'x-cache' => array ( 0 => 'Error from cloudfront', ), 'via' => array ( 0 => '1.1 8d0bf2975485a7f0e4b8d82ddd378293.cloudfront.net (CloudFront)', ), 'x-amz-cf-pop' => array ( 0 => 'IAD50-C2', ), 'x-amz-cf-id' => array ( 0 => 'aaaaa==', ), ), )), 'status_code' => 500, 'protocol_version' => 1.1, 'success' => false, 'redirects' => 0, 'url' => 'https://www.wordfence.com/api/wf/site/aaaaa', 'history' => array ( ), 'cookies' => Requests_Cookie_Jar::__set_state(array( 'cookies' => array ( 'wordfence_central_api_session' => Requests_Cookie::__set_state(array( 'name' => 'wordfence_central_api_session', 'value' => 'aaaaa', 'attributes' => Requests_Utility_CaseInsensitiveDictionary::__set_state(array( 'data' => array ( 'expires' => 1636501897, 'max-age' => 1636501897, 'path' => '/', 'httponly' => true, 'domain' => 'www.wordfence.com', ), )), 'flags' => array ( 'creation' => 1636494697, 'last-access' => 1636494697, 'persistent' => false, 'host-only' => true, ), 'reference_time' => 1636494697, )), ), )), )), 'filename' => NULL, 'data' => NULL, 'headers' => NULL, 'status' => NULL, )), )—
Please let me know if you need any more information to diagnose.
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
The topic ‘Error Connecting to Wordfence Central’ is closed to new replies.