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 - 8:22 pm

Something is definately trying to allocate enough memory to hold the file. I just don't know what. I'm not aware of any anti-virus software running on my web server.

I've had 2 other people test it for me, including a support person at my web host (ixwebhosting), both had the same error.

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

now keep in mind, images may try to display, audio may try to post, video may try to play, if embedded.... that is how wp and sp work... but just a link will not be loaded...

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

Mr Papa said

 but just a link will not be loaded...

That's what I would expect, and yet something is trying to allocate enough memory to hold the file, even if it's a text file, as I mentioned earlier.

Do you know how much memory you have available here?

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

I think this has beaten me. frown

  • SP 4.5.1 also fails, but even on the 32MB test
  • You say SP could not cause this.
  • ixWebhosting says it's not them.
  • WP posts containing the same links work.
  • PHPBB posts containing the same links work.
  • SMF1 posts containing the same links work.
  • Mingle forum posts containing the same links work.

I have no idea where to go from here to get SP to work for me.

Avatar
Mike Warren
Cairns, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Jan 11, 2012 - 12:51 am

One last experiment:

I installed xampp on my win7 machine all settings are at the defaults.

Created a test site and installed WP and SP. Nothing else, not even any SP plugins.

Created a folder called files in the local test site and copied the 128MB text file to it.

Created one SP forum.

 

I then tried creating posts with links to large files in them.

Linking to the 128MB file on the local machine works.

Linking to the 128MB file on my web host fails.

Linking to a large test file I found on another site also fails. ( http://download.thinkbroadband...../100MB.zip )

 

The interesting thing here is that running from localhost the error is no longer an out of memory one. It's a timeout error.

Fatal error: Maximum execution time of 120 seconds exceeded in C:xampphtdocsmike-warren_netwp-includesclass-http.php on line 906

 

Line 906 is   $strResponse = stream_get_contents( $handle ); which looks like it's trying to load the file to me.

 

Given this new information and the fact that I now have a local setup I can play with, is there anything you want me to try?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 11, 2012 - 5:19 am

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?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mike Warren
Cairns, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Jan 11, 2012 - 6:35 am

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?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 11, 2012 - 11:25 am

What about the Wp theme? Was that the same?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mike Warren
Cairns, Australia
Member
Free Members
sp_UserOfflineSmall Offline
Jan 11, 2012 - 2:37 pm

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

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

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.

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