Technology Tools for Ministry

Community

Web-Empowered Church User Community
Total Posts: 8 - Pages (1): [1]
Author: David Bourgeois
Posted: Feb 19 2008 - 03:04 PM
Subject: 10 mb limit
Just tried to upload a new sermon on our vine hosted site. Got an error that I exceeded file size of 10mb. How do I change this?

Dave
Author: Matt Bradshaw
Posted: Feb 19 2008 - 03:15 PM
Subject: re: 10 mb limit
Hi Dave. :-)

There are two places that you'll want to tweak settings.

1) the "upload_max_filesize" property for all of PHP (/etc/php.ini)

and

2) the $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'] Typo3 variable inside of localconf.php

Remember that you might want to provide some extra wiggle room as HTTP transfers add some overhead, if I recall (doing Base64 encoding or some such inflating).

Please let me know if you need further assistance.

Thanks!

Matt
Author: David Bourgeois
Posted: Feb 19 2008 - 04:29 PM
Subject: re: re: 10 mb limit
Since this is hosted at Vine, do they make that change or do I have the authority? I just checked the PHP config and it is set at 50mb. The TYPO3 config is set to 10mb, so that is the one that needs the change.

Dave
Author: Matt Bradshaw
Posted: Feb 19 2008 - 04:45 PM
Subject: re: 10 mb limit
You have the authority (so long as you can access the Install Tool). :-)

Once in the Install Tool, simply select "All Configuration" and then locate the TYPO3 config value "maxFileSize" (and change it to taste). Click the Update button and all should be well.

Hope this helps!

Matt
user picture Author: Mark Stephenson
Posted: Feb 19 2008 - 08:35 PM
Subject: re: 10 mb limit
Dave,

Hmm, if you are on Vine Hosting then this value should have been set to at least 50 MB. It is an easy fix, as Matt just posted. So, you have the option of fixing it yourself or posting a Vine ticket. Also, I just sent an e-mail to Vine to notify them of this issue.

In Him,
Mark
Author: David Bourgeois
Posted: Feb 20 2008 - 12:18 PM
Subject: re: 10 mb limit
OK, just tried to change it via install tool but my password is no good. This is weird because I never changed the default password and the password I enter matches what is in the localconf file (comparing the hash results). Anyways, I will enter a ticket, but I must say that I am not off to a good start here...

Dave
Author: Sandra Savage
Posted: Apr 28 2008 - 08:31 PM
Subject: re: 10 mb limit
Hi Dave,

I, too, am new at TYPO3 and found this issue extremely frustrating. It would seem that there are actually 3 places that control file size, the two mentioned above plus in each extension's tca.php file. The Sermon Manager is supposed to be looking at the file size set in the localconfig.php file but even when the file size in my localcongif.php file was set to 60000k, I still got that file size error message. So this is how I got around that. I changed the SMS tca.php file to not look at the localconfig.php for the maz file size and I put my own in there as follows:
'file' => Array (
'exclude' => 1,
'l10n_mode' => 'exclude',
'label' => 'LLL:EXT:wec_sermons/locallang_db.php:tx_wecsermons_resources.file', 'config' => Array (
'type' => 'group',
'internal_type' => 'file',
'allowed' => '', // Must be empty for disallowed to work. 'disallowed' => 'php,php3',
/*'max_size' => $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize'],*/ 'max_size' => 60000,
'uploadfolder' => $extConf['resourceUploadPath'],
You can see the original line of code that I commented out. I added the line that follows it and things have been fine ever since.

Hope this helps,

Sandra
user picture Author: Mark Stephenson
Posted: Apr 29 2008 - 11:28 AM
Subject: re: 10 mb limit
Sandra,

I think that we need your help to understand what is happening here. You should never need to edit the tca.php file. The max file size value should be read from the TYPO3 configuration. If it is not then there is a bug somewhere. We tested it and it seemed to work fine for us. The change is in the Install Tool under All Configuration. Are you saying that you changed that value to 60000 in the install tool and then the Sermon Management System did not allow you to upload files larger than 10 MB? That should not happen. Please let us know.

For some background, PHP is the software that executes WEC-TYPO3. There are settings in PHP that define memory limits to ensure any script it runs does not use too much memory. When a script goes over that limit, PHP produces an error that is difficult to understand and basically crashes the PHP-TYPO3 software. In addition, TYPO3 has a file upload setting. When a file reaches that limit TYPO3 warns the user in an error message and TYPO3 keeps running. So there are two places to set this value because one is for PHP and the other is for TYPO3. Our preference is to have the nicer error recovery TYPO3 provides. The tca.php file reads that same TYPO3 value. So you should not need to do anything more than to set the TYPO3 value in the Install Tool.

I hope this helps.

In Him,
Mark
Total Posts: 8 - Pages (1): [1]
You must login to post a message to this conference.