Forums

Email and attach

Rapace 04 Apr, 2013
Hello, I've got some problems with chrono forms. when I try to upload file and submit the form there's some bugs...
1)Incoming email looks like:
E-mail {input_text_1}
Label Text {input_file_2}
Label Text {input_file_3}
Submitted by 217.66.159.102
instead of e-mail of client and attached files

2)After pushing submit button there's some strange errors appeared:
GreyHead 04 Apr, 2013
Hi Rapace,

Which version of ChronoForms are you using?
You can find the version from Site Admin | Extensions | Install/Uninstall | Components in Joomla! 1.5 or Site Admin | Extensions | Extension Manager | Manage in Joomla! 1.6/1.7/2.5.

There was a bug in some older versions of CFv3 that showed this error.

Please drag a Debugger action into the On Submit event, then submit the form and post the debug results here.

Note: if you are using the Easy Wizard you can turn on Debug on the Others tab.

Bob
Rapace 04 Apr, 2013
Thank you for answering me. my version is 4.0 RC3.5.1 and joomla 1.5.26. But debugger doesn't work at frontend view.
GreyHead 04 Apr, 2013
Hi Rapace,

You might want to upgrade to the latest release - though I don't think that will solve this problem.

The Debugger should work if you can see the form. Where do you have the action now?

Bob
Rapace 04 Apr, 2013
You can see it at attach below
GreyHead 04 Apr, 2013
Hi Rapace,

Ah OK, my mistake. Please drag a second copy of the Debugger action into the On Fail event and move it up before the Event Loop.

Bob
Rapace 04 Apr, 2013
Data Array:
Array
(
[option] => com_chronoforms
[chronoform] => 123
[event] => submit
[Itemid] =>
[input_text_1] => 454545
[input_file_2] =>
[input_file_3] =>
[input_submit_4] => Submit
[09f8ebd89e9f791d6fdf13a2d658b5ac] => 1
)
Validation Errors:
Array
(
[input_file_2] => 6
)
Debug Data
PHP returned this error for file upload by : input_file_2, PHP error is: 6
GreyHead 04 Apr, 2013
Hi Rapace,

PHP File Upload error 6 is "Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP 5.0.3. "

Please make sure that you have a temporary folder set up, I think it's in the PHP.ini file.

Bob
Rapace 04 Apr, 2013
I am very,very sorry but what should I write in my php.ini?
upload_tmp_dir and what???


Also I've got this line in my php.ini :

disable_functions=show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open

maybe this is the problem?
GreyHead 05 Apr, 2013
HI Rapace,

I'm sorry, I don't know how your server or site are configured, please check with your web host for these settings.

Bob
Rapace 05 Apr, 2013
Thank you very much, Bob! Now attach is working correctly. But there are 3 messages coming to my email...
Two empty with:
почта {input_text_1}
Label Text {input_file_2}
Label Text {input_file_3}
And one normal. How can I fix it?
GreyHead 05 Apr, 2013
Hi Rapace,

I'm not sure, there are three Emails in the Easy Wizard - do you have them all enabled? If so, disable the two you don't need and check the template in the third one.

Bob
Rapace 05 Apr, 2013
I've downloaded plugin to insert cf in content. But when I've swithed it on my site braked down! White screen and sign : Form name can NOT be empty! But my form has a name! Site works with switched off plugin only.
GreyHead 05 Apr, 2013
Hi Rapace,

Please make sure that you have the correct version of the ChronoForms plug-in for the version of Joomla! you are using.

Bob
Rapace 06 Apr, 2013
Thank you, Bob! That's ok now. But my form doesn't want to upload docx files. My settings :
GreyHead 06 Apr, 2013
Hi Rapace,

I can't see any reason here why docx files would be blocked. What do you see in the Debugger when you try uploading one?

Bob

PS You are missing the Max File Size error message.
Rapace 07 Apr, 2013
Data Array:
Array
(
[chronoform] => 123
[event] => submit
[format] => html
[Itemid] => 45
[option] => com_content
[view] => article
[id] => 85
[input_text_1] =>
[input_text_2] =>
[email]ra@nv.hg[/email]
[input_file_3] =>
[input_file_4] =>
[input_textarea_5] =>
[input_submit_6] => Отправить
[da2e087fc97604e8ab1fd4f243c4eb6c] => 1
)
Validation Errors:
Array
(
[input_file_3] => Sorry, Your uploaded file type is not allowed.
)
Debug Data
Upload routine started for file upload by : input_file_3
File : input_file_3 extension is not allowed.
GreyHead 10 Apr, 2013
Hi Rapace,

I don't see any problems there and can't work out why docx files are causing a problem. You could try changing the order in the list to -docx-doc- . . . I don't see why that should make any difference but I'll try anything.

Bob
This topic is locked and no more replies can be posted.