VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: hshs on February 05, 2015, 01:46:28 AM

Title: Large Image Files - Safe Directory
Post by: hshs on February 05, 2015, 01:46:28 AM
Hi,

Any insight on this one would be appreciated. Virtuemart version is 3.0.2 with PHP 5.4.23

I created a safe directory as recommended. I also increased the file upload size and max post size in the php.ini file as I am going to be selling large digital files. When I use the Media Files section of Virtuemart to upload the files it uploads them to the safe directory with no problem - regardless of file size. If I upload a large file such as 25MB it uploads the file but we can't get back into the Media Manager Section of Virtuemart - it returns a blank page. If I delete the file in the safe directory it's fine again and we can access that section of the Virtuemart Control Panel. If I upload a small file such as 5 or 6MB through the Media Files section there are no issues at all. It works great. Can someone shed some light on why it's returning a blank page with large files and what I can do to correct the issue please? There is nothing in the script error log or error log.

Thanks again!
Title: Re: Large Image Files - Safe Directory
Post by: jenkinhill on February 05, 2015, 10:53:13 AM
Check the error log on the server for the cause of the blank page as that will show if there is a php limit being exceeded. http://forum.virtuemart.net/index.php?topic=121692.0
Title: Re: Large Image Files - Safe Directory
Post by: hshs on February 05, 2015, 22:16:54 PM
Hi,

Thank you for the response. I appreciate it. I had increased the memory limit to 256MB and that did not help. I have also looked at the script error log and server error log and there is no entry. The really strange aspect of this is that it only happens when the file sizes are above 7 or 8MB. I could not find any other setting in the php.ini file that would cause it. I also tried the vmdebug mode and again no error messages when accessing the media files... It's a really strange issue and I'm sure it's something I have overlooked but not sure what that is.
Title: Re: Large Image Files - Safe Directory
Post by: GJC Web Design on February 05, 2015, 23:06:30 PM
Apache errors on a shared host are often not available to you - you must ask your host....
Title: Re: Large Image Files - Safe Directory
Post by: jenkinhill on February 05, 2015, 23:29:14 PM
For large files you would need to substantially increase:Upload_max_filesize  - 1500 M
Max_input_time  - eg 1000
Memory_limit    - eg 1024M
Max_execution_time -  eg 3600
Post_max_size - eg 2000 M

Usually such levels are only achievable on a dedicated server to which you have full root access.
Title: Re: Large Image Files - Safe Directory
Post by: hshs on February 06, 2015, 22:57:17 PM
Thank you for your help. The suggested changes to the php.ini file were made and it did not solve the issue. I elected to go with another shopping cart solution and wanted to write to thank you for the responses.