Support Forum

Links to external media files

38 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Clearly it is trying to load the file hence the stream and CURL messages. But as you have discovered here, SP does not do this. Why would it? It is a simple link.

So you do really need to look at other environmental issues at play here. What other Wp plugins do you have active?

MW Mike Warren
Mike Warren
Member

That’s the mystery. My last test (the local one) was a fresh install of WP and all I did was add SP. I made no changes at all to either WP or SP. That last test has eliminated my web host from the picture completely. It doesn’t seem likely that it’s something on my computer causing the problem since 2 other people confirmed the problem. Plus, it doesn’t happen for me on this site.

 

Do you have any suggestions for how I might go about finding the cause? I know less than nothing about php or I would get in there and add some debugging code. Is it even possible to set break-points and single step?

YS Yellow Swordfish
Yellow Swordfish
Member

What about the Wp theme? Was that the same?

MW Mike Warren
Mike Warren
Member

No. I normally use Suffusion. I didn’t change anything in the test installation from the defaults so the theme is TwentyEleven.

MW Mike Warren
Mike Warren
Member

And I’m seeing different behaviour today. Linking the thinkbroadband files works, but it’s still failing on links to files from my own site. I changed nothing at all from yesterday to today.

MW Mike Warren
Mike Warren
Member

Thanks Steve. I was just about to reply. Unfortunately, that didn’t work.

I’ve set up a basic test install (just WP and SP) and opened it to guest posting, and I’ll try and get a few friends from around the world to test it. I’d appreciate it if anyone here could also give it a go for me.

http://mike-warren.net/sp/?page_id=5

If it posst okay, I’ll know because I’ll see the post, If it doesn’t, can you please let me know, either here or there.

I want to eliminate all doubt that it’s something to do with my computer or ISP. I need multiple tests because it does occasionally work for me.

MW Mike Warren
Mike Warren
Member

And I’ve had one friend report back the same thing. I think that means I can eliminate my computer and ISP and concentrate at the other end.

Actually, I just remembered I have some web space with my ISP. They probably don’t have php or DB, but I’ll look into it.

YS Yellow Swordfish
Yellow Swordfish
Member

i think I can say that we are both eager to hear anything you might discover…

MW Mike Warren
Mike Warren
Member

I’ve been unable to get it to fail for the last 15 minutes, but it just started failing again. I noticed that while it was working, the file itself would take a few seconds to start downloading if I clicked in the link. Makes me think that whatever is trying to access the link gives up pretty quickly if it can’t find it.

Since I have a localhost version running on xampp I’m hoping to work out how to do some debugging with xdebug. Might take me a while…

YS Yellow Swordfish
Yellow Swordfish
Member

Good luck. Debugging php leaves a lot to be desired! Would be interested to know how you get on with that as well actually.

MW Mike Warren
Mike Warren
Member

Well, I must have got it installed properly since it already gives me a bit more information. It will take me a while to understand it though.

 

( ! ) Fatal error: Maximum execution time of 120 seconds exceeded in C:xampphtdocsmike-warren_netsite201201wp-includesclass-http.php on line 906
Call Stack
# Time Memory Function Location
1 0.0007 337992 {main}( ) ..index.php:0
2 0.0011 341872 require( ‘C:xampphtdocsmike-warren_netsite201201wp-blog-header.php’ ) ..index.php:17
3 0.2803 20717584 wp( ) ..wp-blog-header.php:14
4 0.2803 20717664 WP->main( ) ..functions.php:1570
5 0.2804 20717664 WP->parse_request( ) ..class-wp.php:505
6 0.2812 20719632 do_action_ref_array( ) ..class-wp.php:307
7 0.2812 20720320 call_user_func_array ( ) ..plugin.php:486
8 0.2812 20720336 sp_ahah_handler( ) ..plugin.php:486
9 0.2835 20914008 include( ‘C:xampphtdocsmike-warren_netsite201201wp-contentpluginssimple-pressforumlibrarysp-post.php’ ) ..sp-ahah-handler.php:85
10 0.3471 25581072 sp_filter_content_save( ) ..sp-post.php:138
11 0.3492 25667064 sp_filter_save_oEmbed( ) ..sp-api-filters.php:94
12 0.3492 25667312 preg_replace_callback ( ) ..sp-api-filters.php:683
13 0.3493 25668136 sp_check_save_oEmbed( ) ..sp-api-filters.php:683
14 0.3493 25668136 wp_oembed_get( ) ..sp-api-filters.php:688
15 0.3505 25760344 WP_oEmbed->get_html( ) ..media.php:1386
16 0.3507 25760672 WP_oEmbed->discover( ) ..class-oembed.php:87
17 0.3507 25760792 wp_remote_get( ) ..class-oembed.php:105
18 0.3507 25761024 WP_Http->get( ) ..http.php:76
19 0.3508 25761432 WP_Http->request( ) ..class-http.php:298
20 0.3513 25765288 WP_Http->_dispatch_request( ) ..class-http.php:192
21 0.3514 25765552 WP_Http_Streams->request( ) ..class-http.php:255
MW Mike Warren
Mike Warren
Member

Arrggg! I forgot to switch off oembed on the local installation. I’ll try again.

MW Mike Warren
Mike Warren
Member

Same result with the Auto Embed switched off so I guess oembed is not that.