A little introducion.
Today I was making a Joomla site for my customer. He requested to add an application from to his site. So, I thought why not to use ChronoForms. Ok downloaded, installed, looked into the manual, did everything. Added a file field, added enctype etc. Trying to submit... Dang, E-mail not sent... OK, I thought... Let's debug this. So I went to chronocontact.php and found a neat little function called
- Code: Select all
handle_uploaded_files
- Code: Select all
$fileperms = "0000";
- Code: Select all
if ( strlen($mosConfig_fileperms) > 0 ) {
$fileperms = octdec($mosConfig_fileperms);
}
I though ok ... Let's see our $mosConfig_fileperms var in configuration.php . And dang ! It was
- Code: Select all
$mosConfig_fileperms = '';
AHA ! Got you ! Basically because of that var the file was uploaded with 0000 CHMOD, that means that only webserver root can do something with it, that means that mosMail function wasn't even able to read this file, hence the "E-mail not send" error, since I dont have any root .. I changed it to 0644 so it became like this
- Code: Select all
$mosConfig_fileperms = '0644';
And voila! "E-mail sent!" I'm happy, customer happy, everyone is happy.
SOLUTION
Short solution for those who don't wanna read all the text. All you need to do, is change $mosConfig_fileperms in your configuration.php to '0644' if it is ''. So it must look like that
- Code: Select all
$mosConfig_fileperms = '0644';
P.S Sorry for my English, not a native speaker.<br><br>Post edited by: JohnieWalker, at: 2008/01/30 21:09


