Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Links to external media files
Avatar
Mike Warren
Cairns, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2012 - 6:31 am

If I include a link to an external audio or video file there is a very long delay when I click the post button. It's as if the complete file is trying to be loaded somewhere.

Example: http://mike-warren.net/pc3/Clo.....and_II.mp3

 

Edit: It doesn't happen on this forum, only mine. Any idea where I could look for a cause? I discovered this when posting a link to a very large video file. When I clicked "Submit Post" the page went blank and was still like that an hour later.

Avatar
Mike Warren
Cairns, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2012 - 2:59 pm

I asked someone else to try it for me and it worked for him, but he said it took 20 seconds.

 

For me, what happens when I click the submit button:

- The small message that normally pops up at the top of the window saying "Saving Post. Please wait" doesn't appear.

- Instead, the page goes blank and this is shown in the address bar:

mysite.com/index.php?sp_ahah=post&sfnonce=33e03ed543

 

Any ideas how I can work out what's going wrong? This is a show stopper for me.

Avatar
Mike Warren
Cairns, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2012 - 4:24 pm

I just tried with Chrome and instead of a blank page I get an error message: "HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request."

Avatar
Mike Warren
Cairns, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2012 - 4:58 pm

Testing here:

<link removed>

 

Definitely works here. this is strange.

 

I'll try another support request with my host. Last time they just said the error was caused by a faulty script.

Avatar
Mike Warren
Cairns, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2012 - 5:37 pm

My host says this is caused by the forum software trying to allocate more than my allowed 64MB of memory.

It's as if the file itself is trying to be loaded.

I just tried renaming the file from .mp4 to .zip and it posted fine. Then I renamed it back to .mp4 and it still posted fine. It's like the problem just fixed itself. frown Perhaps the host changed something without telling me. I hate mysteries like this. They tend to come back and bite me.

I guess it's back to more testing.

Avatar
Mike Warren
Cairns, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2012 - 5:41 pm

No, it's not fine. I had miss-typed the link. One thing has changed, though. I now actually get an error message:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 110628865 bytes) in mywebsite.com/wp-includes/class-http.php on line 1106

Off to see if I can find that file.

Avatar
Mike Warren
Cairns, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2012 - 5:54 pm

Line 1106 is calling a function called curl_exec()

$theResponse = curl_exec( $handle );

I cant find that function, but I suspect it's not relevant anyway.

 

So what I've been able to determine:

-If I rename the mp4 file to .zip, the link posts fine.

-The link to the mp4 file posts fine on this site. And it's fast. There is no delay.

-A new WP installation using the TenTwenty theme and only SP added to it exhibits the same problem.

-Links to smaller media files post fine, but there is a delay as if the file is being loaded somewhere. The out of memory error would tend to support this theory.

 

<link removed>

Avatar
Mike Warren
Cairns, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2012 - 6:47 pm

Many more tests later and I've discovered this is not just related to media files. The reason I thought renaming it to zip was working was just a coincidence. It doesn't fail every time. About 1 out of 10 times the post will submit successfully.

Avatar
Mike Warren
Cairns, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2012 - 8:07 pm

I wonder if anyone else would like to try and duplicate this?

For me, posts including this link always work, even it the link is listed several times.

http://mike-warren.net/files/T.....st32MB.txt

This link gives me the out of memory error: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 67174401 bytes) in /wp-includes/class-http.php on line 1106. Note the amount of memory trying to be allocated is exactly the size of the file.

http://mike-warren.net/files/T.....st64MB.txt

 

And finally, here is an even larger one:

http://mike-warren.net/files/T.....t128MB.txt

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jan 10, 2012 - 8:12 pm

so your server could be very slow going outside...  have you verified you have curl installed on your server???

we know nothing, nada, zip, about links and where they go...  we do nothing with them.... unless image in which case we have to determine size...

but the message says your server is running out of php memory... do you have antivius software or other that might be scanning the file on the link???

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626