Skip to content

Instantly share code, notes, and snippets.

@samgavinio
Last active July 3, 2018 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samgavinio/18a8eedb52b05e891cf3a31a5881e0f5 to your computer and use it in GitHub Desktop.
Save samgavinio/18a8eedb52b05e891cf3a31a5881e0f5 to your computer and use it in GitHub Desktop.
Troubleshooting steps for Zendesk Authentication within Wordpress
## Disclaimer: This tries to debug an issue for Zendesk auth within Wordpress by modifying the code within the zendesk extension.
## Before beginning, it is highly recommended that this is done in a NON-PRODUCTION environment and that you have a back-up of wp-content/plugins/zendesk somewhere safe.
1. Gain access to the wp-content directory of your wordpress installation
2. Open wp-content/plugins/zendesk/classes/zendesk-wordpress-api.php
3. In the function "private function _get", slighly modify the wp_remote_get call
$result = wp_remote_get(
$target_url,
array(
'headers' => $headers,
'sslverify' => false,
'user-agent' => ZENDESK_USER_AGENT,
)
);
// change to the following (remove the sslverify field)
$result = wp_remote_get(
$target_url,
array(
'headers' => $headers,
'user-agent' => ZENDESK_USER_AGENT,
)
);
4. Save the file and try to authenticate again to your Zendesk in the Wordpress dashboard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment