Forums

Array is empty

tlegens 23 Aug, 2016
I've got a strange issue where in my debug it shows an empty array. It only does this on the server, my localhost sends fine. I'd think I have a setup issue but like I said, it works fine locally. Any ideas?

Array
(
    [chronoform] => Schedule
    [event] => submit
    [Schedule] => 
    [ip_address] => 69.89.31.192
)

Array
(
)
Errors
Array
(
)
Debug Info
Array
(
    [0] => Array
        (
            [Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:tom@myemail.com
                    [2] => Subject:Schedule Request Received
                    [3] => From name:My Website
                    [4] => From email:info@mywebsite.com
                    [5] => CC:
                    [6] => BCC:
                    [7] => Reply name:
                    [8] => Reply email:
                    [9] => Attachments:
                    [10] => Array
                        (
                        )

                    [11] => Body:
<h3>Schedule Request Received</h3>
<table>
<tr><td>First Name: </td><td></td></tr>
<tr><td>Last Name: </td><td></td></tr>
<tr><td>Email Address: </td><td></td></tr>
<tr><td>Phone Number: </td><td></td></tr>
<tr><td>Delivery Method: </td><td></td></tr>
<tr><td>Zip Code: </td><td></td></tr>
</table><br /><br />IP: 69.89.31.192
                )

        )

)
GreyHead 24 Aug, 2016
Hi tlegens,

No idea - I notice that there is no data being submitted here, is that part of the problem?

Bob
tlegens 24 Aug, 2016
Yes, that's what it appears to be. I fill out all of the fields and hit submit but no email is sent and that display is the result. Works fine on my local machine. Any idea of what could be causing the blank fields? Template is set up.

You can give it a try at http://www.cleankidzusa.com/schedule
GreyHead 24 Aug, 2016
Hi tlegens,

The data is being submitted correctly from the form but has all been deleted by the time the debugger runs. My best guess is that you have some security setting on the server that is blocking form submissions.

Bob
tlegens 24 Aug, 2016
The site is using RS Firewall. You ever have any experience with it causing issues with chronoforms5? I just added a component exception but it didn't change anything other than I get a email with all the fields blank.
GreyHead 24 Aug, 2016
Hi tlegens,

I'd hazard a guess that is the problem. It's still not letting the form submit though.

Bob
tlegens 26 Aug, 2016
Hey Bob, figured I'd try this one more time. I thought I had the issue with form submissions fixed by changing to relative URL's but its not consistent.

I did get the db submission to kind of work but it only saves the cf_id and create date, user etc. None of my form fields get saved to the DB or output in the debugger. I'd think its server related because I can get it all to work on my localhost but for some reason on a production server its getting caught up. I even turned off the RS Firewall so I know its not a firewall issue. I'll also note as far as forms being submitted the Joomla emails like new account, passwords etc work so I know the site can send email.

When I do get an email from chronoforms the fields are blank like so:

Name:
Email:
etc...
tlegens 26 Aug, 2016
I also wanted to note that the IP address received in the email is the one from the server and not my IP as the sender. Not sure if that means anything but certainly won't be worth anything if all emails have the same IP.
GreyHead 26 Aug, 2016
Hi tlegens,

You know that the form works on localhost so this problem is something to do with the server configuration. Its looks as if there is some setting that is deleting the values from the $_POST array before ChronoForms sees them. I can only suggest that you check with your web-host.

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