naner13
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Testing wp_oembed_get function?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
In reply to: Testing wp_oembed_get function?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
In reply to: Testing wp_oembed_get function?We are using stock packages from CentOS. Other than memory tuning and setting virtual folders we haven’t done much! :/
Forum: Fixing WordPress
In reply to: Testing wp_oembed_get function?Yes, I was able to cURL to Vimeo just fine.
Forum: Fixing WordPress
In reply to: Testing wp_oembed_get function?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.comThey 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
In reply to: Testing wp_oembed_get function?Here’s the URL to the fresh wordpress install.
http://test.outlookmag.org/Forum: Fixing WordPress
In reply to: Testing wp_oembed_get function?Nothing happens, it displays the URL as plain text.
Forum: Fixing WordPress
In reply to: Testing wp_oembed_get function?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
In reply to: Testing wp_oembed_get function?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
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!!!