Last active
July 3, 2018 07:33
-
-
Save samgavinio/18a8eedb52b05e891cf3a31a5881e0f5 to your computer and use it in GitHub Desktop.
Troubleshooting steps for Zendesk Authentication within Wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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