VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Criz on November 21, 2012, 22:18:05 PM

Title: Download files are destroyed
Post by: Criz on November 21, 2012, 22:18:05 PM
Hi There,

I use VM 2.0xx and the Virtual Products Plug In. Everything is OK but when i Download the bought file via the link it loads about 95% and than it stops. I checked already on different receivers. But all the same. Download Starts pretty fast but hangs up at 95% . Does anybody has an Idea, I am sure it is something very simple, but i just can find it. So every advice is really welcome, thanks.
Title: Re: Download files are destroyed
Post by: jenkinhill on November 21, 2012, 23:50:45 PM
2.0xx is not precise enough. Always try to give the proper Joomla, VM and PHP version.

You problem sounds like a server issue . Are your PHP resources set high enough?
Title: Re: Download files are destroyed
Post by: Criz on November 22, 2012, 10:11:30 AM
Hi Thanks, it seems you are right, since i tried smaler files and they worked fine. How do I change those the best?
in php.ini I can read ; Resource Limits ;
max_execution_time = 60     ; Maximum execution time of each script, in seconds
max_input_time = 60   ; Maximum amount of time each script may spend parsing request data
memory_limit = 64M      ; Maximum amount of memory a script may consume (16MB)

Shall i change it here? I just ask since i am not that familar with php and I do not want to mess it. Thank you

My fles are not larger than 25MB
Title: Re: Download files are destroyed
Post by: bytelord on November 22, 2012, 10:21:56 AM
Hello,

Change them to:

max_execution_time = 300     ; Maximum execution time of each script, in seconds
max_input_time = 60   ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M      ; Maximum amount of memory a script may consume (16MB)

and add:

value upload_max_filesize 30M

or use FTP to upload them ...
Regards
Title: Re: Download files are destroyed
Post by: Criz on November 22, 2012, 11:10:44 AM
Hi Thank You, i did the changes , but still the download stops at about 94% 96% sometimes 99%
you can check my php by using this link http://conwoodmusic.de/view-php-info.php
Could there be any other reason causing this stopping of download ?
Title: Re: Download files are destroyed
Post by: bytelord on November 22, 2012, 11:37:30 AM
Try,

max_input_time = 300   ; Maximum amount of time each script may spend parsing request data
Title: Re: Download files are destroyed
Post by: Criz on November 22, 2012, 12:22:18 PM
Thank you, but still no success. Do you have any other idea?
Title: Re: Download files are destroyed
Post by: bytelord on November 22, 2012, 12:39:43 PM
Hi,

What's the exactly error on apache log file?
can you also check joomla error log?

What's your PHP, joomla and vm2 versions you are using?

Regards
Title: Re: Download files are destroyed
Post by: Criz on November 22, 2012, 14:44:46 PM
hi there and thanks for your patience here is what i have founfd in log file:
[22-Nov-2012 14:16:21] PHP Notice:  Trying to get property of non-object in /html/joomla/plugins/vmcustom/st42_download/st42_download.php on line 407
[22-Nov-2012 14:16:21] PHP Notice:  Undefined variable: name in /html/joomla/plugins/vmcustom/st42_download/st42_download.php on line 411
[22-Nov-2012 14:16:21] PHP Notice:  Undefined property: stdClass::$file_description in /html/joomla/plugins/vmcustom/st42_download/st42_download.php on line 205
[22-Nov-2012 14:16:21] PHP Notice:  Undefined property: stdClass::$file_title in /html/joomla/plugins/vmcustom/st42_download/st42_download.php on line 206
Title: Re: Download files are destroyed
Post by: Criz on November 22, 2012, 15:25:34 PM
OK Guys I am really sorry, but it seems i just forgot to upload st42_download1.0.6 . Anyway I installed it new/again or first time - i really don't know - and now the downloads working. Somehow I had all the time the feeling that it is something really stupid.
Thank you for your help!