 | |  |
 |

dwelling
User
Jul 7, 2008, 1:52 PM
Post #1 of 11
(1084 views)
Shortcut
|
|
Uploads failing
|
Can't Post
|
|
We are designing a site for a church using CMS builder as a backend CMS solution. It is a really wonderful solution for allowing the client's appointees to be able to update the site on their own. One such area that will be updated by church volunteers is an "audio" section. On the "audio" page, there is Flash-based audio player that loads multiple audio files from a folder and the site visitor can select the file to play within the Flash audio player. I set up the upload field in the CMS administrator to have uploaded files go into this specific folder (in the advanced features). For this client, the audio consists of the Sunday morning sermons, which are about 30 minutes long and about 15 MB large as mp3 files. Now, in order to allow the site visitor to download the files (which they cannot do from the Flash player) I am adding the CMS uploaded files code to the bottom of the page, so that any files they upload, in addition to being playable in the Flash audio player, will also be available to download from the bottom portion of the page. Here's our issue: Smaller files will upload fine and integrate into the Flash audio player, as well as appearing at the bottom of the page to be downloaded. However, these "sermon" audio files will not upload. They process for a couple of minutes (longer in Firefox) and then you get the following error messages: In Internet Explorer: "The page cannot be displayed." In Firefox: "The connection was reset - The connection to the server was reset while the page was loading. * The site could be temporarily unavailable or too busy. Try again in a few moments. * If you are unable to load any pages, check your computer's network connection. * If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web." I contacted the hosting provider and they said that they had no set timeout for uploads, even given the fact that it was being done through our own CMS system (which I showed them). Also, I do not have the "maximum upload size" checked. It is not having a problem with smaller mp3 files, just larger ones, it seems. Can anyone think of what we might be able to do to overcome this issue? My only idea so far (and one I'm not really excited about because it's not a very streamlined solution for the people who will update the site) was to just teach them how to FTP upload the files to the "audio" folder. However, I then have the issue of those files not showing up in the download area at the bottom of the page. Thanks, in advance, for any advice. Jeremy
|
|
|  |
 |

Donna
Staff
/ Moderator

Jul 7, 2008, 2:51 PM
Post #2 of 11
(1079 views)
Shortcut
|
|
Re: [dwelling] Uploads failing
[In reply to]
|
Can't Post
|
|
Hi Jeremy, Yep, sounds like it's timing out -- even if your host has no set timeout, HTTP just wasn't designed for uploading really large files like that. FTP is probably the route to go there. As for having it linked in CMS Builder, one option would be to create a new field for the filenames and type them in there... then add the link code to your page (like this: <a href="<?php code goes here?>">Download Audio File</a>) With that, whatever you put into the field will be output for that field (with the correct PHP code from the code generator for that field, of course.) Would something like that work for you? Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

Dave
Staff
/ Moderator

Jul 7, 2008, 3:41 PM
Post #3 of 11
(1074 views)
Shortcut
|
|
Re: [dwelling] Uploads failing
[In reply to]
|
Can't Post
|
|
Jeremy, Is the user on high-speed or dialup? If you wanted to send me (FTP Login, CMS Login, and a sample file that times out) to dave@interactivetools.com I could take a look at your settings to see if anything could be adjusted. Hope that helps! Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

dwelling
User
Jul 7, 2008, 4:08 PM
Post #4 of 11
(1071 views)
Shortcut
|
Thanks so much Dave (and Donna). I'm sending over an email now. Jeremy
|
|
|  |
 |

dwelling
User
Jul 8, 2008, 6:42 AM
Post #5 of 11
(1044 views)
Shortcut
|
|
Re: [dwelling] Uploads failing
[In reply to]
|
Can't Post
|
|
Problem solved! Thanks Dave! Just in case anyone has this problem in the future, here's what fixed it. The following is an email I received from Dave: "Hi Jeremy, If you look under Admin > General > phpinfo (a link at the bottom) http://www.yourdomain.com/cmsAdmin/admin.php?menu=admin&action=phpinfo It lists all the PHP config options. Here's some that will make it timeout max_execution_time (program run time) was set to 60, I updated in your /php5.ini to be 300 max_input_time (upload time) was set to 30, I updated in your /php5.ini to be 300 (five minutes) post_max_size (upload size) was set to 8M, I updated in your /php5.ini to be 100M upload_max_filesize (max upload size) was set to 2M, I updated in your /php5.ini to be 100M After changing those it seems to work. Can you test it on your end? Hope that helps!" The changes were made to the PHP5.ini file located in the root directory of the site (if running PHP 5). (If this file does not exist, you can make one by creating a text file, saving it as "php5.ini" - if running PHP version 5 - and putting the following lines in the file.) Dave added these lines to the php5.ini file: max_input_time = 300 post_max_size = "100M" max_execution_time = 300 upload_max_filesize = "100M" Everything now works perfectly! Thanks again! Jeremy
(This post was edited by dwelling on Jul 8, 2008, 6:43 AM)
|
|
|  |
 |

jimbly2
User
Jul 14, 2008, 9:17 AM
Post #6 of 11
(561 views)
Shortcut
|
|
Re: [dwelling] Uploads failing
[In reply to]
|
Can't Post
|
|
Hi - I'm having the same issue here - any pdf over about 3 meg just fails to upload. But I don't have the phpinfo link that you describe in your Admin settings? I am using CMS version 1.07 - is it time to upgrade? :-) thanks Jim
|
|
|  |
 |

Dave
Staff
/ Moderator

Jul 14, 2008, 9:46 AM
Post #7 of 11
(559 views)
Shortcut
|
Hi Jim, You can create your own info script. Just create a new file called phpinfo.php with this contents: <?php print phpinfo(); ?> Hope that helps! Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

jimbly2
User
Jul 14, 2008, 10:15 AM
Post #8 of 11
(553 views)
Shortcut
|
Hi Dave, hope you're well - yes thanks - I remembered that just after I posted! I need to get access to the server root to revise the php.ini file now.
|
|
|  |
 |

Dave
Staff
/ Moderator

Jul 14, 2008, 10:20 AM
Post #9 of 11
(551 views)
Shortcut
|
Ok, keep in mind that different hosts are setup differently. Sometimes you can set those settings with an .htaccess file, sometimes they'll be in your website root in a /php.ini (beside your index.html), and sometimes you'll need to ask your host to make the changes. If unsure, just check with your host. Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

jimbly2
User
Jul 15, 2008, 4:11 AM
Post #10 of 11
(524 views)
Shortcut
|
Hi Dave, I've made changes to the php.ini file, but do I need to restart the webserver for the changes to take effect? thanks J
|
|
|  |
 |

jimbly2
User
Jul 15, 2008, 4:41 AM
Post #11 of 11
(521 views)
Shortcut
|
Done and sorted! Thanks Dave
|
|
|  |
|