Title: naner13's Replies | WordPress.org

---

# naner13

  [  ](https://wordpress.org/support/users/naner13/)

 *   [Profile](https://wordpress.org/support/users/naner13/)
 *   [Topics Started](https://wordpress.org/support/users/naner13/topics/)
 *   [Replies Created](https://wordpress.org/support/users/naner13/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/naner13/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/naner13/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/naner13/engagements/)
 *   [Favorites](https://wordpress.org/support/users/naner13/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Testing wp_oembed_get function?](https://wordpress.org/support/topic/testing-wp_oembed_get-function/)
 *  Thread Starter [naner13](https://wordpress.org/support/users/naner13/)
 * (@naner13)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/testing-wp_oembed_get-function/page/2/#post-5773589)
 * After a lot of trial and error, the only thing that fixed the problem was changing
   DNS servers on the server, though we can’t really explain why. We looked at the
   network traffic and we couldn’t see anything. Thanks for all your help James.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Testing wp_oembed_get function?](https://wordpress.org/support/topic/testing-wp_oembed_get-function/)
 *  Thread Starter [naner13](https://wordpress.org/support/users/naner13/)
 * (@naner13)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/testing-wp_oembed_get-function/#post-5773548)
 * We are going to try to monitor the network and see if we can see anything there(
   when looking around in the dashboard or trying to using oembed).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Testing wp_oembed_get function?](https://wordpress.org/support/topic/testing-wp_oembed_get-function/)
 *  Thread Starter [naner13](https://wordpress.org/support/users/naner13/)
 * (@naner13)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/testing-wp_oembed_get-function/#post-5773546)
 * We are using stock packages from CentOS. Other than memory tuning and setting
   virtual folders we haven’t done much! :/
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Testing wp_oembed_get function?](https://wordpress.org/support/topic/testing-wp_oembed_get-function/)
 *  Thread Starter [naner13](https://wordpress.org/support/users/naner13/)
 * (@naner13)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/testing-wp_oembed_get-function/#post-5773544)
 * Yes, I was able to cURL to Vimeo just fine.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Testing wp_oembed_get function?](https://wordpress.org/support/topic/testing-wp_oembed_get-function/)
 *  Thread Starter [naner13](https://wordpress.org/support/users/naner13/)
 * (@naner13)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/testing-wp_oembed_get-function/#post-5773541)
 * Thanks again James,
 * 1. I have tried https and http URLs (Vimeo and YouTube). Does not seem to make
   a difference.
 * 2. INTERESTING… the dashboard is indeed EXTREMELY slow, BUT, the news panel works
   just fine. We have tested the DNS in multiple ways:
 * – Ping from the server
    – gethostbyname on PHP – curl call to vimeo.com
 * They all worked fine, they resolved the hostname.
 * 3. We have tried disabling the firewall, it didn’t fix it.
 * Could it be an Apache/PHP configuration or module that we are missing?
 * Thanks!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Testing wp_oembed_get function?](https://wordpress.org/support/topic/testing-wp_oembed_get-function/)
 *  Thread Starter [naner13](https://wordpress.org/support/users/naner13/)
 * (@naner13)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/testing-wp_oembed_get-function/#post-5773538)
 * Here’s the URL to the fresh wordpress install.
    [http://test.outlookmag.org/](http://test.outlookmag.org/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Testing wp_oembed_get function?](https://wordpress.org/support/topic/testing-wp_oembed_get-function/)
 *  Thread Starter [naner13](https://wordpress.org/support/users/naner13/)
 * (@naner13)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/testing-wp_oembed_get-function/#post-5773537)
 * Nothing happens, it displays the URL as plain text.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Testing wp_oembed_get function?](https://wordpress.org/support/topic/testing-wp_oembed_get-function/)
 *  Thread Starter [naner13](https://wordpress.org/support/users/naner13/)
 * (@naner13)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/testing-wp_oembed_get-function/#post-5773530)
 * What do you mean by via oEmbed? Something like the following?
 *     ```
       require_once("wp-load.php");
       $embed_code = wp_oembed_get('http://vimeo.com/114998128');
       print($embed_code);
       ```
   
 * It returns false everytime. Yes, using the embed code works fine.
 * Let me make sure all those permissions are fixed and I’ll send the URL.
 * Thanks again.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Testing wp_oembed_get function?](https://wordpress.org/support/topic/testing-wp_oembed_get-function/)
 *  Thread Starter [naner13](https://wordpress.org/support/users/naner13/)
 * (@naner13)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/testing-wp_oembed_get-function/#post-5773525)
 * Hey James,
 * I’ve come a lot further since I posted this question, but I’m still having issues.
   First I set up a test where I called wp_oembed_get and noticed that it would 
   ALWAYS return false regardless of the video I was trying to load (vimeo, youtube).
   We can’t figure out why that’s happening.
 * We modified the script to be able to get more information/detailed errors from
   the server, here’s the response: [https://gist.github.com/anonymous/efc99814d2d4e7a4a7ad](https://gist.github.com/anonymous/efc99814d2d4e7a4a7ad)
 * Notice that under the error sections it says: “Resolving timed out after 5123
   milliseconds”. To prove that DNS was working fine I set up a php script to call
   gethostbyname for vimeo.com and also made a call to the video url using curl,
   both worked fine, meaning PHP was able to resolve the host. We tried to change
   the timeout on Apache and PHP but that didn’t solve the problem.
 * We are running a CentOS 7 Linux installation. SELinux is set to permissive and
   we have even tried to set the firewall off but still doesn’t work. We also set
   up a fresh wordpress install on the same server to test things, so it is not 
   plugin or theme related.
 * On the fresh install we set all permissions to 777 to make sure it was not a 
   permissions issue either. No luck.
 * Any ideas? Thanks a lot!!!

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