Title: Can&#039;t embed from GitHub
Last modified: August 30, 2016

---

# Can't embed from GitHub

 *  Resolved [JacobD10](https://wordpress.org/support/users/jacobd10/)
 * (@jacobd10)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cant-embed-from-github/)
 * I can’t seem to be able to embed anything from GitHub. I have no problem embedding
   a video from youtube, though.
    Is there anything I need to do with the GitHub
   API on either end or anything else? Let me know if you need any more info.
 * [https://wordpress.org/plugins/dobsondev-shortcodes/](https://wordpress.org/plugins/dobsondev-shortcodes/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [DobsonDev](https://wordpress.org/support/users/dobsondev/)
 * (@dobsondev)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cant-embed-from-github/#post-6604778)
 * Can you send me the shortcode you are using for the embed? If you could also 
   include the repository you are trying to embed from GitHub that would be great
   as well.
 * Thanks!
 *  Thread Starter [JacobD10](https://wordpress.org/support/users/jacobd10/)
 * (@jacobd10)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cant-embed-from-github/#post-6604786)
 * Either
    `[embedGitHubReadme owner="jquery" repo="jquery" cache_id="jquery"]` 
   or `[embedGitHubReadme owner="jquery" repo="jquery" cache_id="123"]` or `[embedGitHubReadme
   owner="FortAwesome" repo="Font-Awesome" cache_id="123"]` won’t work for me. Neither
   will any other repository.
 *  Plugin Author [DobsonDev](https://wordpress.org/support/users/dobsondev/)
 * (@dobsondev)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/cant-embed-from-github/#post-6604795)
 * What other plugins do you have enabled on your site? I tested the embeds you 
   provided on my own testing site and they all worked – so either the theme or 
   another one of the plugins is conflicting with mine.
 * Do you know if any of the other shortcodes provided with my plugin work? Also
   do you know if for some reason CURL is disabled on your server?
 * If you want to weed out the problem yourself the first step would probably be
   to deactivate all plugins except for mine, see if that works, then activate the
   other plugins one by one. You should be able to narrow down what’s causing the
   problem from there.
 * If you have any kind of error log and can give me a copy of that I might be able
   to help more as well.
 *  Thread Starter [JacobD10](https://wordpress.org/support/users/jacobd10/)
 * (@jacobd10)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cant-embed-from-github/#post-6604810)
 * I disabled every plugin except this one and it still does not display anything.
   
   The video embedding from YouTube using your plugin works fine.
 * I have WordPress 4.3.1 running Twenty Fifteen theme.
 *  Thread Starter [JacobD10](https://wordpress.org/support/users/jacobd10/)
 * (@jacobd10)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cant-embed-from-github/#post-6604811)
 * I also enabled debugging and logging and there are no errors shown for your plugin.
 *  Plugin Author [DobsonDev](https://wordpress.org/support/users/dobsondev/)
 * (@dobsondev)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cant-embed-from-github/#post-6604826)
 * Can you check if cURL is available on your server? The API calls are done with
   cURL so this is one of the only problems I could see still getting in the way
   of the plugin working.
 * The other option we could do is you could email me your login info and FTP info
   to [alex@dobsondev.com](https://wordpress.org/support/topic/cant-embed-from-github/alex@dobsondev.com?output_format=md)
   and I could take a look at everything myself.
 * Thanks!
 *  Thread Starter [JacobD10](https://wordpress.org/support/users/jacobd10/)
 * (@jacobd10)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cant-embed-from-github/#post-6604831)
 * cURL support enabled
    cURL Information 7.42.1
 * Features
    AsynchDNS Yes CharConv No Debug No GSS-Negotiate No IDN Yes IPv6 Yes
   krb4 No Largefile Yes libz Yes NTLM Yes NTLMWB No SPNEGO Yes SSL Yes SSPI Yes
   TLS-SRP No
 * Looks like cURL is enabled and turned on no problem.
    I will send you an email.
 *  Plugin Author [DobsonDev](https://wordpress.org/support/users/dobsondev/)
 * (@dobsondev)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/cant-embed-from-github/#post-6604836)
 * I emailed back and forth with Jacob and we figured out the problem but I thought
   that I would include it here in case anyone searches.
 * The problem occurred because cURL was unable to verify the certificate provided
   by the server. This can be solved in two different ways:
 * 1. Use curl with CURLOPT_SSL_VERIFYPEER => false which allows curl to make insecure
   connections, that is curl does not verify the certificate.
 * 2. Add the root CA (the CA signing the server certificate) to etc/ssl/certs/ca-
   certificates.crt
 * I will do an update later today that allows for an option to allow insecure connections
   if the user needs to do that. The default cURL calls in both the GitHub Readme
   and GitHub File Contents shortcodes will still be secure.
 * If you do need to use insecure connection then use the following syntax (this
   is an example using Font Awesome): [embedGitHubReadme owner=”FortAwesome” repo
   =”Font-Awesome” insecure=“true”]

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Can't embed from GitHub’ is closed to new replies.

 * ![](https://ps.w.org/dobsondev-shortcodes/assets/icon-256x256.png?rev=1029764)
 * [DobsonDev Shortcodes](https://wordpress.org/plugins/dobsondev-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dobsondev-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dobsondev-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/dobsondev-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dobsondev-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dobsondev-shortcodes/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [embed](https://wordpress.org/support/topic-tag/embed/)
 * [fail](https://wordpress.org/support/topic-tag/fail/)

 * 8 replies
 * 2 participants
 * Last reply from: [DobsonDev](https://wordpress.org/support/users/dobsondev/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/cant-embed-from-github/#post-6604836)
 * Status: resolved