Forums

unable to upload / send attachments

nick2011 30 Jul, 2015
Hi
Before posting I tried to do all suggested and read all similar posts.
However I'm not able to have an image attachment uploaded and sent via email.
This is the debug info.

Can you please tell me what to check?

Thanks



Message succesfully sent. Thanks.
Data Array
Array
(
    [option] => com_chronoforms5
    [chronoform] => Contact
    [event] => submit
    [tvout] => ajax
    [first_name] => nicola
    [email] => info@xxxxxx.eu
    [text_message] => test
    [recaptcha_challenge_field] => 03AHJ_VuttBDGva21mdz_eUSwv3FA62Qqxv6vwHFGq-EVbCJ0K_WR--ULAn-8XnP8uw70dp31XEnVhCeB4hbmN1byOBX_wO8FLAlFHxF32GIvTzCnE0BXd8C1iS9An9zmb61r8E9AofI5vmYizUBw3Xrx9Kb_GVi87zcCNOC_SbiBkYdRHc-q-Vh6Drtf-wFf07c_mKYK3MxA6CHyTLU2NR0XoLdw_QZArvsagnrGGOnh1DzidzPKF3gXve2uHj9LStEESluc9-rOrPF8zJ6Z5yPmE73QrSgukCg
    [recaptcha_response_field] => 120
    [button6] => Submit
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
    [8] => Array
        (
            [Check ReCaptcha] => Array
                (
                    [0] => ( reCAPTCHA said: invalid-site-private-key )
                )

        )

    [0] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:info@xxxxxxxxx.com
                    [2] => Subject:Contact from website
                    [3] => From name:nicola
                    [4] => From email:info@xxxxxxx.eu
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:
                    [8] => Reply email:
                    [9] => Attachments:
                    [10] => Array
                        (
                        )

                    [11] => Body:
<table>
<tr><td>Name</td><td>nicola</td></tr>
<tr><td>Email</td><td>info@xxxxx.eu</td></tr>
<tr><td>Message</td><td>test</td></tr>
<tr><td>Picture</td><td></td></tr>
<tr><td>Picture</td><td></td></tr>
<tr><td>Picture</td><td></td></tr>
<tr><td>Picture</td><td></td></tr>
<tr><td>Picture</td><td></td></tr>
<tr><td></td><td></td></tr>
<tr><td></td><td></td></tr>
</table><br /><br />
                )

        )

)
GreyHead 30 Jul, 2015
Hi nick2011,

Are you using AJAX submission? I don't think that supports file uploads. Pleae try turning it off and see if that solves the problem.

Bob
nick2011 30 Jul, 2015
Hi Bob
I just solved it in the meantime. It was a problem of the default path for the uploads.
I had to set it manually in the uploader.

So now email is sent correctly.

However, still a few questions.
I put a progress bar and it is not doing anything.

And, the recaptcha is correctly displaying, but the module is sent anyway even if I don't type any captcha code.
Any suggestion.

Thanks
GreyHead 01 Aug, 2015
Hi nick2011,

The Progress bar is intended for multi-step forms I think, not for upload progress.

Do you have an Event Loop action in the pink On Fail event of the Check ReCaptcha action?

Bob
nick2011 01 Aug, 2015
Hi Bob
no. there was no event loop in the fail section.
Now I put it and the form is stopped correctly if no/wrong captcha is entered.

However the recaptcha is not reloaded after this
GreyHead 01 Aug, 2015
Hi nick2011,

The form should just re-load as normal. If you check your browser web developer tools do you see any errors from the Google ReCaptcha?

Bob
nick2011 03 Aug, 2015
Array
(
    [option] => com_chronoforms5
    [chronoform] => Contact
    [event] => submit
    [tvout] => ajax
    [first_name] => Nick
    [email] => info@ccc.eu
    [age] => 33
    [height] => 180
    [weight] => 80
    [text_message] => lkh lhk lhk lh
    [confirm] => 1
    [recaptcha_challenge_field] => 03AHJ_Vut243WXz8SCsuKuji-m03ut6necbkS_6WKTAO8iBZWn4729kw4LMzOJuSSdu32k5i8yka7LXF_wQ98G89tYAAN99-A2luxiDes4ZeGq9rDBtey99VHo9O3LzG8TLqtlY0ftJ5bRBNS6viTkpIR-r3uy-88qCAgjeYObYGrAOKmzREOqBrU23uH_8KOsoPxoRZjgOGi5zOVOJCT6Xe8283efIE_-REj2Pj8YXXJju3HtSehRtkcBPcTvNR3-3YIOLVfb16P9-Q_MzozaNawQI-DncLPKEg
    [recaptcha_response_field] => 
    [button6] => Submit
)
Array
(
)
Errors
Array
(
    [recaptcha] => The reCAPTCHA wasn't entered correctly. Please try it again.
)
Debug Info
Array
(
    [8] => Array
        (
            [Check ReCaptcha] => Array
                (
                    [0] => ( reCAPTCHA said: incorrect-captcha-sol )
                )

        )

)


hi Bob
this is what I get from the debugger
GreyHead 03 Aug, 2015
Hi nick2011,

I was thinking about JavaScript errors showing in the console.

Bob
nick2011 03 Aug, 2015
I've tried to enable the console via the Configure Java panel, however I'm not getting the console.
How can I do to see Java debug?
GreyHead 03 Aug, 2015
Hi nick2011,

It's JavaScript we are looking for not Java (they are quite different). In most browsers I use F12 will open the developer tools, or you can do it from the browser menu. Then look for a Console tab.

Bob
nick2011 04 Aug, 2015
thanks for the help
this is the error generated
document.write('<scr'+'ipt type="text/javascript" s'+'rc="' + RecaptchaState.server + 'js/recaptcha.js"></scr'+'ipt>');

Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.

challenge?k=6LfNoAUAAAAAAKi8QZmjv-QHOvlGtyh509SG3FzG&_=1438674095211:17
GreyHead 04 Aug, 2015
Hi nick2011,

Not an error that I've seen before. Please post a link to the form so I can take a quick look.

Bob
nick2011 04 Aug, 2015
Hi Bob
Sent via PM
Thanks
GreyHead 04 Aug, 2015
Hi nick2011,

I think that you have Ajax Submission enabled in the HTML (Render form) action, That would explain why that message is being re-shown. I don't know if there is a workaround for that though - but as you have file uploads you should disable it which will hopefully solve the problem.

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