Welcome, Guest
Username Password: Remember me

SOLVED - MP3 Downloads 0 Bytes
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: SOLVED - MP3 Downloads 0 Bytes

SOLVED - MP3 Downloads 0 Bytes 07 Jun 2009 20:27 #928

I see that others are having this problem. The MP3 files play famously using the built in MP3 player but after enabling the download icon, when downloading I get 0 byte files.

I have included file sizes in the Edit Media administration page.

There are no spaces in the file name or path.

I did make sure that the following parameters are set:

allow_url_fopen = On;
allow_url_include = On;

I don't see where I set the new Compatibility Mode spoken of?

I am running ...
Vista-64
Joomla 1.5.10
on WAMP 2.0
with PHP 5.2.9-2
and MySQL 5.1.33


Thanks,

- Nick
Last Edit: 09 Jun 2009 19:09 by Nick Steblay.

Re:MP3 Downloads 0 Bytes 08 Jun 2009 07:30 #929

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
Compatability Mode is found at the top of the parameters. You can either choose it from the global parameters found in the admin side, or use the parameters found by editing the menu item of the link you created to the studieslist view.
"You shall know the truth and the truth shall set you free." JC

Re:MP3 Downloads 0 Bytes 08 Jun 2009 17:09 #933

OK Thanks! I should have seen that. Similar to another post I saw now I am only getting 300 bytes downloaded. This must be a Joomla or PHP configuration issue. I'll dig in deeper to see if I can figure out what is causing it.

- Nick

Re:SOLVED - MP3 Downloads 0 Bytes 09 Jun 2009 19:19 #936

Alrighty. I got it working.

I watched the code using xdebug in Netbeans 6.5. I observed that the readfile() PHP function was being used. I had specified localhost as my server. For some reason the readfile() function doesn't work with localhost. When I changed the server to 127.0.0.1 it worked fine and was fast.

I also changed the php.ini parameter output_buffering value to On. It was a small value (2048).

I would imagine when I am finally hosting this as a public site using a DNS resolvable domain name it will work fine.

If your having problems doing the downloads locally try these steps.

- Nick

Re:SOLVED - MP3 Downloads 0 Bytes 09 Jun 2009 21:11 #937

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
Cool. Thanks for the advice. I'm sure it'll come in handy, especially for those testing their sites before they become public.
"You shall know the truth and the truth shall set you free." JC

Re:SOLVED - MP3 Downloads 0 Bytes 13 Jun 2009 13:25 #938

  • Jason
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
I had the same problem at one time now the downloads are about half complete and then they stop.

earlier this statement was made
"I also changed the php.ini parameter output_buffering value to On. It was a small value (2048)."

where is the php.ini changed? is this a file in a particular folder? I didn't see it as a parameter option for the component.
  • Page:
  • 1
  • 2
Moderators: Darren Vandermyde, Kyle
Time to create page: 0.65 seconds